Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prints blank page after I exit application
Message
From
08/02/2001 08:25:31
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00473841
Message ID:
00473885
Views:
24
Hi Steve,

Why the SET PRINTER commands at all? If this is a VFP application then there is no real reason for the SET PRINTER commands.

>
>
>*SET PRINTER TO LPT1:
>SET PRINTER ON
>SET NULLDISPLAY TO ""
>SET ANSI ON
>SELECT * FROM aed_info ;
>WHERE ALLT(aed_info.name1) = ALLT(THISFORM.t_name1.Value) AND ;
>	ALLT(aed_info.unitid) = ALLT(THISFORM.cbo_unitid.DisplayValue) ;
>INTO CURSOR rpt
>SET ANSI OFF
>REPORT FORM \aed\aedlocdt.frx TO PRINTER NOCONSOLE
>SET PRINTER OFF
>*SET PRINTER TO
>CLEAR
>THISFORM.Refresh
>
>
>It used to print the blank page immediately after printing my report, but since I commented out SET PRINTER TO commands, it waits until I exit the application and then prints the blank page. My report, however, prints properly.
>
>Thanks for helping.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform