Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 Printing on HP printers causes PC lockup
Message
From
20/01/1999 16:43:20
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00176904
Message ID:
00178259
Views:
26
>
>I am not familiar with C or how to implement the _fpreset() solution. Would you show me how?
>

Sure. Everything is done in VFP
You only have to declare the function once for the app, so I put the declaration in the setup code for the app after the application object is created

PUBLIC oApp
oApp = CREATEOBJECT(APPCLASS)
IF TYPE('oApp') = "O"
*-- declare _fpreset function in msvcrt20 for HP print drivers
DECLARE _fpreset IN msvcrt20

Then, whenever you do anything that may use the printer driver, REPORT FORM, GETPRINTER, SYS(1037), check the earlier threads, call the function as in example below

REPORT FORM somerepo.frx ALL TO PRINTER NOCONSOLE
=_fpreset()

Like I said, I've tried it on the one instance where the app was crashing sometime after printing and it seems to have solved the problem. Also, I'm not sure from earlier threads if resetting the coprocessor in this way affects other processes going on the system.


Rod Poujade
Information Systems Resources
McGill University
Montreal, QC
Rod Poujade
Previous
Reply
Map
View

Click here to load this message in the networking platform