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... » QTF to ODF (Open Document Format) converter (İnvestigating the possibility of writing a converter that can convert U++ qtf to odf files )
Re: QTF to ODF (Open Document Format) converter [message #44132 is a reply to message #44131] Thu, 01 January 2015 13:37 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Oblivion,

To export to RTF I usually do the following:
RichText richTextObj = myRichTextGenerator;
SaveFile(fileName, EncodeRTF( richTextObj, CHARSET_UTF8));


To use QTF you have to convert to//from RichText, so use the following code:
String qtfString AsQTF( richTextObj );
richTextObj = ParseQTF(qtfString);


For HTML you have the
EncodeHtml()
function

To convert to PDF, I use Report class:
Report r;
r << qtfString
r.Perform();

==> this opens a dialog displaying the report. If the PdfDraw Package is included, then a 'PDF' button is present and you can export to PDF Smile

Hope it helps
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to get image from richtext?
Next Topic: Possible Bug with Printing under linux
Goto Forum:
  


Current Time: Wed May 08 14:34:06 CEST 2024

Total time taken to generate the page: 0.02855 seconds