>>Try the fix suggested in this Microsoft KB sheet.
>>
>>
http://support.microsoft.com/support/kb/articles/Q183/5/22.ASP>>
>>Robert
>
>Robert,
>
>I'm familiar with this problem and use this fix all over the place. I'm doing a _fpreset() before and after the call to sys(1037) as in:
>
>= _fpreset()
>= sys(1037) && Page Setup Dialog Box.
>CREATE CURSOR Dummy (DumField C(1))
>CREATE REPORT TempRpt FROM Dummy
>ERASE TempRpt.Frx
>ERASE TempRpt.Frt
>= _fpreset()
>
>But if you hit Esc on click on Cancel in the sys(1037) dialog window the code will fail with a C000005 error on the CREATE REPORT line no matter what printer or driver is currently default.
>
I remember this, and George Tasker traced it down to a difference in one of the UI-related .DLL version. The problem doesn't reproduce on either of the Win98 boxes here, one running with Service Pack 1, the other running SE. I can make NT 4 fail by doing:
=SYS(1037)
=GETPRINTER()
The other error is the "Why can't HP put the FPU back in a known state when they return from their freaking drivers???" problem. VS SP3 addressed some but not all of the problems with the printer driver state, and if this is the problem, using an OS distribution driver for a compatible printer will eliminate it in all cases.