Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report printing does not release memory ? Pc Hang
Message
From
13/08/1999 08:50:20
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00253180
Message ID:
00253356
Views:
21
This is still a problem in VFP 6 SP3 with previewing reports. See the article:
http://support.microsoft.com/support/kb/articles/q216/5/87.asp
It discusses memory leaks when previewing reports.

Jonathan

>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform