Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computer crashing after VFP reports
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00181134
Message ID:
00182594
Views:
31
>Added this to the beginning of the main program:
>
>DECLARE _fpreset IN msvcrt20.dll
>
>We addedcalls to _fpreset() after each:
>
>SET( "Printer", 2)
>SET( "Printer", 3)
>REPORT FORM ...
>SET PRINTER TO NAME
>
>Also add a call to each report's dataenvironment BeforeOpenTables and Destroy
>method.
>
>Also add _fpreset() immediately after either of these, which this other
>developer was not using:
>
>GETPRINTER()
>SYS(1037)

All,

This is fine, if the declare is set in the main.prg. During development, I don't call a main.prg and during the day I may issue a clear all, clear all, clear. I can add the _fpreset() to the forms using printing to the base class, but can I add the:
DECLARE _fpreset command in the load or init event? or at least test whether is already declared and if not, then Declare it?
What would be the best approach?

Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform