CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Montreal, Quebec
    Posts
    27

    Rich Text problem....

    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!


  2. #2
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Re: Rich Text problem....

    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
    Kris
    Software Engineer
    Phoenix, AZ USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured