Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report crashes application after printing
Message
 
To
30/04/1998 04:30:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095464
Message ID:
00096022
Views:
61
>>>>I have this code behind a button;
>>>>
>>>>LOCAL dBDate,cdtocBDate
>>>>dBDate = CTOD(THIS.PARENT.txtRptDate.VALUE)
>>>>REPORT FORM BatchRpt NOCONSOLE TO PRINTER PROMPT
>>>>ThisForm.txtFind.SetFocus()
>>>>
>>>>The report prints and returns control to the app nicely on my PC, either in the developer mode or running the exe. However, on the user's machine the code prints ok but crashes the app attempting to return to the form. (Error 10H in VFP500.dll)
>>>>
>>>>BatchRpt uses a parameterized view, lv_batchrpt, and is passed dBDate.
>>>>The report makes it to the printer ok, and the printer returns a msg to the workstation telling it that printing is complete. I have tried renaming the dataenvironment in the report, to no avail.
>>>>
>>>>The printer checks out fine and prints other reports in the app that use views, but this is the only one that uses a parameterized view.
>>>>I'm out of ideas.
>>>
>>>Hi Jerry.
>>>
>>>I think it is the problem with your printer driver.
>>>See http://support.microsoft.com/support/kb/articles/q183/5/22.asp.
>>>I've used _fpreset() to resolve this problem.
>>>Sorry for my bad English.
>>>
>>>Ura
>>
>>
>>Ura,
>>Thanks for the reply! BTW, your english is not any worse than mine! :-)
>>
>>The printer driver was my choice for the main problem, but I wanted to check and besure there wasn't a bug in VFP that could cause this problem. Also, I didn't want to change the printer drivers if I didn't have to because so many other programs require the native drivers that come with the HP 5SiMX laser printer.
>>And, my workstation also prints through the net to another HP5SiMX that uses the same driver, and all works well in both the Dev and user mode.
>>Jerry
>
>Hi Jerry.
>I have same problems and I don't know what to do. _fpreset() worked last week, but now I have again an error 10H after printing the report. What is changed - data? date? weather? :<(
>I have 2 network printers on my station (HP LJ 6P and HP LJ 4Si). Users print to HP LJ 6P and HP LJ 5Si. When the 6P printer is set as the default printer the app crashes, with other printers - no problems.
>It seems to me that data in tables/views affect the problem. When I developed the application all was OK, but when I've loaded real data I've got the error (reducing the number of records eliminates the error).
>Who will be the next victim of HP? If you find any solution, communicate with me please.
>TIA, Ura

Installed the app on another workstation on the same network segment and the print process worked fine. The problem is specific to the first user's machine. I'm going to
reinstall the HP 5SiMX drivers and if that doesn't work I will chose a more generic
HP driver from the Win95 set.
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform