Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank page prints after report is done?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00472986
Message ID:
00473272
Vues:
18
Steve, some of your code is pre-VFP code that you may not need. Try leaving out the SET PRINTER.... commands, as they may be causing extra pages. You needed the "SET PRINTER TO" command at the end of DOS programs to tell the print spooler you were done and it should send it's contents to the printer. Windows usually handles this pretty well.
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
CLEAR
THISFORM.Refresh
I don't know whether you require the "NullDisplay" and "ANSI" commands.

HTH
Barbara

>Do you see anything in this code that would cause a blank page to print after the report is done printing? I always get a blank page after the report is done printing. I also think it might be a page length issue, but I only print down to 3/4 of an inch from the bottom edge of the page. 3/4 inch bottom margin minimum. Any ideas? Thanks!
>
>
>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
>SET PRINT OFF
>SET PRINTER TO
>CLEAR
>THISFORM.Refresh
>
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform