Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with getPrinter() and SYS(1037)
Message
 
À
27/12/1999 14:35:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00294947
Message ID:
00308909
Vues:
48
>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.

Currently I using VFP 6 SP 3 and this used to work but I don't know when it stopped working. Someone has suggested that it would have worked in SP2 but I haven't had time to re-install VFP and bring it up to only SP2 to see if this is vaid.

Ed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform