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
REPORT FORM DummyCard.FRX SUMMARY NOCONSOLE TO PRINTER
REPORT FORM BlankCard.LBX NOCONSOLE TO PRINTER NOPAGEEJECT
REPORT FORM CardBack.FRX NOCONSOLE TO PRINTER
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