PDA

View Full Version : Problem pasting images into an RTF document (TX control version 9)


Unregistered
November 15, 2002, 13:54:09
Dear prospective helper!

I have been experiencing problems pasting images into a RTF document using TX Text control version 9.

What happens is that the image pastes into the document and looks normal, but using the savetomemorybuffer or savetomemory methods the image doesn't get saved to the byte array/string, so when I reload what I saved, the image has dissappeared.

I get the same problem with saving to HTML format, also a similar problem when saving to word format although a place holder for the image seems to get saved, just not the image data itself. Saving to TX format presents no problems whatsoever.

I cannot insert an image file into the document as I am trying to use the control with ASP.NET and I want the paste function rather than inserting an image. Also as I am using client side and server side functions linked together by placing the contents of the TX control into a text box, I cannot use TX format. This is because the TX format appears to contain null characters or similar which an HTML textbox cannot cope with.

Any help would be greatly appreciated!

Thanks,

Paul Le Sueur.


This message was originally posted by Paul Le Sueur in the old TX Text Control Support Forum.

Unregistered
November 15, 2002, 17:08:46
To get images to save in RTF, use the .ObjectInsertAsChar instead of pasting images.


This message was originally posted by Mark in the old TX Text Control Support Forum.

Unregistered
November 18, 2002, 20:58:58
May I get sample code on how to do this in C++?


This message was originally posted by Jenny Peng in the old TX Text Control Support Forum.