Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report printing does not release memory ? Pc Hang
Message
From
12/08/1999 18:26:45
 
 
To
12/08/1999 15:46:19
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00253180
Message ID:
00253261
Views:
16
>Hi there,
>
>Below the code I always use to print my reports. Every time I print more than one report after a certain amount of print the computer hang and the trouble start ! It seems that the amount of reports I can print depends on how much memory is available on the PC. So it seems that each print or preview does not release some memory !!!
>
>Can anybody hekp ??
>
>Many thanks
>
>Xavier Desemberg
>
>theprinter=GETPRINTER()
>IF EMPTY(theprinter)
> RETURN
>ELSE
> SET PRINTER TO NAME (theprinter)
>ENDIF
>
>IF askpreview
> REPORT FORM readertrans PREVIEW IN SCREEN
>ELSE
> REPORT FORM readertrans TO PRINTER NOCONSOL
>ENDIF

What version of VFP are you using? This was a know problem with early releases of VFP5. In any case, you should make sure you have the latest service packs, whether it be for VFP5 or VFP6. For VFP5, you need Visual Studio '97 Service Pack 3, and for VFP6 you need Visual Studio 6 Service Pack 3.

Another suggestion is to use the printer driver Micorsoft supplies, as HP supplied drivers, have problems of their own, especially with VFP.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform