Larry,
You posted:
TEXTRTF has the ability to bold text, e.g. {\b Some Text}
My questions are:
* Will it underline? Are there other parms? Is there any
documentation?
* Can I bold/underline variables?
* I need to print a single line with a mixture of text and
variables bolded or underlined. I figured out how to do that
with printer.dll. Can I do it with OIPI?
A Response:
The TEXTRTF is an OIPI Set_Printer Message. When using this message you can pass any valid RTF codes and OIPI will print them for you. The Help file shows how to do so for the bold.
Sean
I agree with the bold parameter, it always works. Why does the following not work?
declare function set_printer
stat=set_printer('INIT','TEST','TEST','',0,2)
stat=set_printer('TEXTRTF','This is {\b BOLD} and this is {\ul UNDERLINED}')
stat=set_printer('TEXT')
stat=set_printer('TEXTRTF',"This is {\b BOLD} why isn't this {\ul UNDERLINED}")
stat=set_printer('TEXTRTF','This is {\b BOLD} and this is {\ul UNDERLINED}')
stat=set_printer('TERM')
return 1
Larry,
I have duplicated the error. I do not have fix yet, but will be investigating and getting back to you.
Please stay tuned.
Sean
Larry,
I have found that the multiple lines of TEXTRTF works if you print the report and not just preview the report. For test purpose play with the zoom in the Preview window and you will see different results for different zoom percents, but when you print your underlines will be there.
Sean
Sean, I have been trying to get this to work also. I found that \b and \ul worked as advertized, but colors such as \red or \blue are ignored.
I needed to highlight an item on a report to indicate an exception, and coloring it red would have been nice. I had to settle for bold, which still made it stand out enough to be noticed.
This would be a really useful feature if we could get it to work a little better.