RTF Editing

japryor

New member
Joined
Apr 14, 2008
Messages
3
Programming Experience
5-10
Can anyone point me to a resource/sample code for progammatically adding page breaks, images, and captions to an existing RTF file using VB.net?

I've played around with the richtextbox control, but haven't been able to programmatically edit the markup portion of the RTF to insert breaks and images. The long-term plan is to have an application load an RTF report referenced in a database, add some photos referenced in a database and save the rtf file back to the same location with the added photos. Thanks!
-Jason
 
I am not sure what to do as far as editting the actual markup within the file but I do know that you can use the Rich Text control to load a rtf file and then through code you could insert the image file somewhere in the control and you could add whatever text you want to it and then save it back out. I am sure there is a way to do everything that you want using the Rich Text Control. After all, all that a .bmp is in a RTF file is a big glob of text. You could easily insert this wherever you want in the file and then save it out.
 
Back
Top