Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with getPrinter() and SYS(1037)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00294947
Message ID:
00308995
Vues:
34
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform