cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_RTF_EDITOR API and RTF Variables

TobiasBettmann
Discoverer
0 Kudos

Hi at all,

i try to develop a rtf editor based on the class CL_GUI_RTF_EDITOR similar to the SAPScript EditorControl.

At this moment the editor can load, save, change font, bold, ...

I try to add Variables to the rft-File, so that a generator (e.g. words mail merge ) can use the rtf files to generate letters.

An Idea to solve my Problem:

The class CL_GUI_RTF_EDITOR calls an extern API, for example the Method SET_TEXT_COLOUR from Class CL_GUI_RTF_EDITOR calls an other method SetTextColour. It seems to be some kind of OLE2.

I can't find out what API it is. Can anyone help me?

Maybe this API helps me to define Variables.

Other Ideas?

Thanks in Advance.

Tobias

Edited by: Tobias Bettmann on Mar 4, 2010 2:49 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I know its a pretty old topic but i really need help.Can you please share the code? I'm trying to create RTF editor but see nothing in my screen.

i have a container and editor and passing the rtf text vai set_text method.

Thanks in advance.

siva

Sandra_Rossi
Active Contributor
0 Kudos

This control corresponds to sapeditor.sapeditorctrl.1 object. You'll find the OCX in C:\Program Files\SAP\FrontEnd\SAPgui\sapedit.ocx (change to the path where you installed the sapgui).

So, you may add a reference to the OCX in Visual Basic (MS word for example) so that to use the object explorer, and you'll see the methods available and parameters. You may also use set x as new Oeditor, then you'll see the members too.

But, I would advise you to use SAP DOI classes so that to use all MS Word functionalities.