Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Page Orientation in Reports
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Changing Page Orientation in Reports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01534215
Message ID:
01534215
Vues:
97
J'aime (1)
I need to print cards that are portrait on the front and landscape on the back. After seeing that the VFP Help section says "Changing between page orientations, such as landscape to portrait, between reports is not supported" and searching fruitlessly on the Web, I figured out how to do it. I want to share it with anyone else who needs this feature.
I am using VFP8, and printing to an Evolis Dualys3 card printer. I don't think that it matters that I switched between reports and labels. Here is how I did it:
REPORT FORM CardFront.LBX NOCONSOLE TO PRINTER NOPAGEEJECT   &&This is the front of the card.
REPORT FORM DummyCard.FRX SUMMARY NOCONSOLE TO PRINTER       &&Dummy card with controls only in the Detail band, none in the Header or Footer.
REPORT FORM BlankCard.LBX NOCONSOLE TO PRINTER NOPAGEEJECT   &&Blank card that contains only a white period (.), which is invisible, since it is white on white.
REPORT FORM CardBack.FRX NOCONSOLE TO PRINTER                               &&This is the back of the card.
It works like this:
1) The front of the card prints.
2) The Dummy Card prints nothing (since SUMMARY suppresses detail line printing), but tricks the printer into thinking that the print job is over (since there is no NOPAGEEJECT). Now the printer can switch orientations, but it is still on the front of the card.
3) The Blank Card also prints nothing, then gets the printer to switch to the back of the card.
4) The back of the card prints.

Jerry Kahn
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform