Hello together,
I have a wxRichTextCtrl (rtc).
If I try to Save a file (rtc->SaveFile("d:\myfile.xml");)
I get the error: The text couldn't be saved.
I just can save it with the attribute wxRICHTEXT_TYPE_TEXT.
But then I can't save images to the file.
Has any body an idea?
Greetings and thanks
kea_
wxRichTextCtrl SaveFile as xml Topic is solved
-
- Earned some good credits
- Posts: 125
- Joined: Wed Mar 05, 2008 3:30 pm
You need to add the line below somewhere in your application initialization part, like in OnInit() of wxApp.
Chris
Code: Select all
wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler);
-
- Earned some good credits
- Posts: 125
- Joined: Wed Mar 05, 2008 3:30 pm
You are welcome. You can close the topic as accepted in order to save the time on those that will click on this topic to provide help. (current topic state: unsolved). Clicking on the answer/user that helped supports the wxAward system.
Chris
Chris