General information
Title:
How to insert a graphic file (BMP) into the RichText control
I need to insert a graphic image into the text content of a file loaded into the OLERtf control. The command
olertf.oleobjects.add(,,lcPicture)
will insert the graphic, but as an oleobject, not an inline graphic.
Also, .ADD not only inserts the object, it opens the appropriate program that would be used to edit the graphic (per the registry entry for that file type).
I can successfully copy a file (manually) to the clipboard, then CTRL+V will paste the graphic inline. I can accomplish the CTRL+V with a KEYBOARD command, but what DLL function or API call or RUN command will copy the contents of a file to the Windows Clipboard?
Or, does anyone know how to paste a graphic (BMP) into the RichText OCX control?
Thanks in advance!
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only