Click to See Complete Forum and Search --> : Rich Text problem....


Laetia
April 30th, 2001, 10:43 AM
Hi!

I've got an application that accesses a database - one of the fields I present in my app is a richtext edit box. If I open an already existant file from the database, it shows up fine in the text box. If I save it however or create a new file from within my application, when next I open the file in my app. the text in the richtext edit box is no longer comprehensible... I see ugly tags like I would if I opened up a Word document in Notepad... Tags for the font, the size, etc....

What could I have done wrong? I could I fix this?

Thank you!

softweng
April 30th, 2001, 10:55 AM
When you save it use the the rtfText option to save it as text instead of an RTF format i.e.

'//Load The Rich Text Box With The File
rtbTest.LoadFile File, rtfText




Also do the same when opening it i.e.

'//Save Changes to File
rtbTest.SaveFile Path, rtfText





Kris
Software Engineer
Phoenix,AZ