Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » EncodeQTF Where is it?
Re: EncodeQTF Where is it? [message #8660 is a reply to message #8625] Thu, 22 March 2007 21:46 Go to previous messageGo to previous message
DuncanShortland is currently offline  DuncanShortland
Messages: 45
Registered: January 2006
Member
That was what I was using.
The two routines inport /export RTF


I can export text in RTF and read again in WORD.
I can create text in WORD and read in the editor.
I can create Text and images in WORD and read in the editor.

If I export text and images I can read in WORD

Text and images I export in the editor I cannot read back.
Appears to be a blank file.

Any help would be welcome.


editor below is

RichEdit editor;


// EXPORT RTF

void Editor::SaveAs() {
FileSel & fs = RTFFs();
if(fs.ExecuteSaveAs()) {
String filename = fs;
if(SaveFile(filename,EncodeRTF(ParseQTF(editor.GetQTF()),CHA RSET_UTF8))){
Exclamation("File " + filename + "was saved.");
ClearModify();
}
}
}


//IMPORT RTF
void Editor::Load() {
FileSel& fs = RTFFs();
if(fs.ExecuteOpen()) {
String filename = (String) fs;
String fileb = LoadFile(filename);
RichText& fbody = ParseRTF(fileb);
String qbody = AsQTF(fbody);
editor.SetQTF(qbody);
editor.ClearModify();
}
else
statusbar.Temporary("Loading Aborted.");
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Richtext / Uword problems
Next Topic: QtfRichObject problem
Goto Forum:
  


Current Time: Sun May 05 01:08:17 CEST 2024

Total time taken to generate the page: 0.02703 seconds