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
Messages: 3432 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
|
|
|
Goto Forum:
Current Time: Fri Apr 25 19:13:26 CEST 2025
Total time taken to generate the page: 0.00734 seconds
|