Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 08 JUL 2004 04:53:21PM Clay Borne wrote:

This is probably an easy question, but I'm clueless. I have a program that is generating a report in OIPI. I am pretty much going line by line with:

x=Set_Printer("FONT","Times New Roman":@FM:12:@FM:"L":@FM:0:@FM:0:@FM:0:@FM:0:@FM:RGB(0,0,0))

x=Set_printer("TEXT","This is a line.")

x=Set_printer("TEXT","This is the next line.")

My question is what if in that line I want to italicise one word or make bold a word. Would I use TEXTXY? Because when I get the POS it brings me to the beginning of the line. I am confused. Thanks.


At 08 JUL 2004 04:58PM Clay Borne wrote:

Nevermind, I read the post right above mine. I must have taken the short bus to school today.


At 08 JUL 2004 08:11PM Larry Deibel wrote:

Hi Clay,

Sounds like we are on the same learning curve re OIPI. I finally found TEXTRTF and it will bold correctly. However, read my response to Sean, underline does not always work.

The other problem is how do you bold/underline a variable. It's one thing to treat static text but what about a variable?

I have figured out how to do almost everything I need using the printer.dll but it won't do a print preview. And OIPI has several other options that I can use but, like you, I am having a hard time trying to figure out how to print a single line with mixed fonts etc.


At 09 JUL 2004 09:10AM Clay wrote:

I would think to bold a variable would be:

x=set_printer("TEXTRTF","This is a {\ul\b ":VARIABLE_NAME":} day.")


At 09 JUL 2004 11:28AM Larry Deibel wrote:

Bolding is not a problem. It always works - on static text. Not so with underline, see posting to me from Sean 7/9. Follow the thread back to see my snippet of code.

My real problem is: How do you bold/underline a variable to make it stand out? For example, if the variable equates to "No" print it normally but if it is a "Yes" then bold it. I have a program written using the printer.dll that works perfectly. But I want to eventually have all printouts done with OIPI.

Later


At 09 JUL 2004 01:07PM Sean FitzSimons wrote:

Larry,

How about:

if variable_name=No' then

   x=set_printer("TEXTRTF","This is a {\b ":VARIABLE_NAME":} day.")

end else

   x=set_printer("TEXT","This is a ":VARIABLE_NAME:" day.")

end

Sean


At 16 JUL 2004 11:51AM Larry Deibel wrote:

Thanks much Sean.

But I did have to modify your code to:

x=set_printer("TEXTRTF","This is a {\b ":VARIABLE_NAME:"} day.")

I know, picky, picky ….

But I didn't do it. It was the compiler.

Once we get {\ul to work all the time I will be a happy camper. Except I will have to take back about half of what I have said about OIPI. But crow, when correctly prepared, is not all that bad. At least that's what my pastor told me.

Jerry (Larry's programmer)


At 16 JUL 2004 12:00PM Sean FitzSimons wrote:

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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/a75218967c3151e885256ecb0072bf88.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1