Printing document pages with different orientation
Publicado: Mar Mar 16, 2010 10:30 pm
I have used the following to construct pages to print:
Printer:StartDoc()
Printer:nPaperSizeType := DMPAPER_LEGAL // must be set before
Printer:StartPage()
Printer:nOrientation := DMORIENT_PORTRAIT // must be set before
Printer:StartPage()
Printer:StartPage()
:TextOut(...... etc.
Printer:EndPage()
Printer:nPaperSizeType := DMPAPER_LEGAL // must be set before
Printer:StartPage()
Printer:nOrientation := DMORIENT_LANDSCAPE // must be set before
Printer:StartPage()
Printer:StartPage()
:TextOut(..... etc.
:Printer:EndPage()
:Printer:EndDoc()
:Printer:Preview()
The preview shows the correct orientation for each page in the document,
however, when I choose to print from the preview window, the first page
prints in Portrait orientation, just like the second page is set to print.
How can I get each page of the document to print in the correct orientation?
TIA,
Gary S. Rogers
Printer:StartDoc()
Printer:nPaperSizeType := DMPAPER_LEGAL // must be set before
Printer:StartPage()
Printer:nOrientation := DMORIENT_PORTRAIT // must be set before
Printer:StartPage()
Printer:StartPage()
:TextOut(...... etc.
Printer:EndPage()
Printer:nPaperSizeType := DMPAPER_LEGAL // must be set before
Printer:StartPage()
Printer:nOrientation := DMORIENT_LANDSCAPE // must be set before
Printer:StartPage()
Printer:StartPage()
:TextOut(..... etc.
:Printer:EndPage()
:Printer:EndDoc()
:Printer:Preview()
The preview shows the correct orientation for each page in the document,
however, when I choose to print from the preview window, the first page
prints in Portrait orientation, just like the second page is set to print.
How can I get each page of the document to print in the correct orientation?
TIA,
Gary S. Rogers