U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » Using QTF the easiest way (specially for Newbies)
Using QTF the easiest way (specially for Newbies) [message #26856] Thu, 03 June 2010 10:36
koldo is currently offline  koldo
Messages: 3461
Registered: August 2008
Senior Veteran
Hello all

Sometimes we need to show rich text but it is not easy to code QTF by hand.

Just the simplest trick is to insert in a Topic++ group a new topic with the text, pictures, tables, ... arranged as you like. To get it you only need this line:

String qtf = GetTopic("topic://MyPackage/MyTopicPP_Group/MyQtfMessage$en-us");		// Change en-us with the used language


If you need to insert variables, you can set fields in the topic like [MyField] and after that do a:

qtf = Replace(qtf, DeQtf("[MyField]"), "My value");


This string is QTF so you can insert it in a Exclamation() a RichTextView or set into a Report.


Best regards
IƱaki
 
Read Message
Previous Topic: Spell checking on linux
Next Topic: PDF Export With Chinese Character[SOLVED]
Goto Forum:
  


Current Time: Wed Sep 16 10:39:14 GMT+2 2026

Total time taken to generate the page: 0.00879 seconds