Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 DEC 1999 06:52:18PM Bruce Lee wrote:

Here is the sample you requested. I need first line and second line to print on the same line.

Thanks Bruce.

if Set_Printer("FONT", Font3) < 0 then

ErrorMsg=Error with the FONT message"

goto fatalExit

end

text=First Line"

x=Set_Printer("TEXT", text)

if Set_Printer("FONT", Font4) < 0 then

ErrorMsg=Error with the FONT message"

goto fatalExit

end

text=Second Line"

x=Set_Printer("TEXT", text)


At 10 DEC 1999 07:09PM Don Bakke wrote:

Bruce,

Whenever you issue a command with the OIPI to print text (i.e. TEXT, TEXTXY, ADDTABLE, etc.) it will always move the internal position one line down. Using a colon won't help as this is a different animal than ARev printing.

What you have to do is use the POS message to get the vertical position prior to printing the first line and then reset the POS position before printing the second line. This will line your text up on the same vertical position. However, they will both be left aligned and, consequently, printing in the same space. You will need to position your second line out some so it will appear to the right of the first line. The TEXTXY and ADDTABLE messages allow you to horizontally position your text. We stopped using TEXTXY, however, when we discovered odd behavour with certain HP printers when using it.

[email protected]

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/120a169f4c30d72285256843008321ba.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1