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 09 APR 2002 12:50:47AM Mark B wrote:

We have the following piece of code in one of our print routines

      Void=Set_Printer("FONT", Font)
Void=Set_printer("CALCTEXT", Text)
Size=Get_Printer("CALCTEXT")
Wide=Size
Startx=PageWidth - Wide

Fairly straightforward, however

When the code reaches the get_printer("CALCTEXT") call

the string 'CALCTEXT' is being returned instead of the size expected

Has anybody seen this before?

This has only started happening today on a clients machine that has been using this routine for many months. According to the client, nothing has changed on the system. We tried printing from other workstations and still had the same error.

TIA

Mark


At 09 APR 2002 04:37AM Mark B wrote:

Further to my previous posting, a call to Get_printer("POS") returns

the string 'POS'

TIA

Mark


At 09 APR 2002 05:21AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

The source code to SLIST is littered with statements

such as

SizeInfo=Get_Printer('CALCTEXT')

									If SizeInfo	=	"CALCTEXT" Then

    OK = False$

									End Else

    Convert "," To "." In SizeInfo

in fact everywhere Get_Printer is called we check for a

correct return value. The explanation is possibly in the comments in the header

from July 97

   1st July 97 
    If the print preview window is closed while processing a report then								Get_Printer returns garbage, so we have to check for this and bomb out								gracefully
    (ie. NOT the debugger..) 

This may be what you're seeing.

The Sprezzatura Group

World Leaders in all things RevSoft


At 09 APR 2002 06:25AM Mark B wrote:

Thanks for that.

We should probably start applying some more error checking ourselves.

What we found is when we reinstalled oipi 4, 4p and then 4.1 we had no more problems.

Don't know what caused it but will at least be more aware in the future.

Thanks again


At 11 APR 2002 07:19PM Eric Hilder wrote:

I have also seen this happen in the 32 bit app when I forget to call the START32 command in OIPI.

Eric H. Hilder

Innovative Billing Solutions

View this thread on the Works forum...

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