OIPI "calctext" (OpenInsight 16-Bit)
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=SizeStartx=PageWidth - WideFairly 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.
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