Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_GUI_TEXTEDIT and graphics

kmoore007
Active Contributor
0 Likes
808

In an MS Word docuemnt you can paste a graphic into the document along with the text and save. Can this be done also with the class CL_GUI_TEXTEDIT editor or another class?

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
728

Hello Kenneth

The textedit control is - like a notepad - only used for text. However, you can use the picture control (<b>CL_GUI_PICTURE</b>).

Have a look at the sample programs in DW Demos (transaction <b>DWDM</b>).

Regards

Uwe

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
729

Hello Kenneth

The textedit control is - like a notepad - only used for text. However, you can use the picture control (<b>CL_GUI_PICTURE</b>).

Have a look at the sample programs in DW Demos (transaction <b>DWDM</b>).

Regards

Uwe

Read only

0 Likes
728

<i> However, you can use the picture control (CL_GUI_PICTURE).</i>

But I doubt that you can copy/paste an image into it.

Regards,

Rich Heilman

Read only

0 Likes
728

if you want kind of rich text editor where you can have pictures, links, etc. you can use BTF editor.

Check this blog for sample code.

/people/durairaj.athavanraja/blog/2005/08/27/btf-editor-in-sapgui

Regards

Raja

Read only

0 Likes
728

I implemented the sample program from Raja and it works fine. However, it seems I can only paste pictures/graphics from my web browser and not from the clipboard. If I copy a picture on my harddrive it will not paste to the BTF editor. But if I copy a picture from the internet, it will paste to the BTF editor. Is this true or am I missing something?

Read only

0 Likes
728

the differrence is because, when you copy paste a picture from a browser, it actually pastes the url where when you do the same from your harddrive it tries to copy the image inself which is not supported in BTF

Regards

Raja