>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