Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prints blank page after I exit application
Message
De
08/02/2001 08:25:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00473841
Message ID:
00473885
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform