Changing print option to portrait/landscape 
Author Message
 Changing print option to portrait/landscape

Is there a way to change the print option of the common-dialog-print to
portrait or landscape ?

I did not see a way using the common dialog flags options.
I am trying to force a landscape to the Printer, but I would also need to
find out which setting the user is set for and after printing, reset it
back to the way it was.

Please help :-(



Sun, 02 Jan 2000 03:00:00 GMT  
 Changing print option to portrait/landscape

Hi:

Try...
Printer.Orientation = vbPRORLandscape
(vbPRORPortrait is the VB5 constant for Portrait)

Dean

Quote:

> Is there a way to change the print option of the common-dialog-print to
> portrait or landscape ?

> I did not see a way using the common dialog flags options.
> I am trying to force a landscape to the Printer, but I would also need to
> find out which setting the user is set for and after printing, reset it
> back to the way it was.

> Please help :-(



Sun, 02 Jan 2000 03:00:00 GMT  
 Changing print option to portrait/landscape

Look at:
http://www.microsoft.com/kb/articles/q80/1/85.htm

This is an extract:

Declare Function Escape% Lib "GDI" (ByVal hDC%, ByVal nEsc%, | ByVal nLen%,
lpData As Any, lpOut As Any)

Sub Command1_Click ()

Const PORTRAIT = 1
Const LANDSCAPE = 2
Const GETSETPAPERORIENT = 30
Dim Orient As OrientStructure
Printer.Print ""
Orient.Orientation = LANDSCAPE
x% = Escape(Printer.hDC, GETSETPAPERORIENT, Len(Orient), "", Null)
Print x%

End Sub
--
[Henri at]



: Is there a way to change the print option of the common-dialog-print to
: portrait or landscape ?
:
: I did not see a way using the common dialog flags options.
: I am trying to force a landscape to the Printer, but I would also need to
: find out which setting the user is set for and after printing, reset it
: back to the way it was.
:
: Please help :-(
:



Mon, 03 Jan 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing Print option to Portrait/Landscape

2. Changing Print Option to Portrait/Landscape

3. Changing print option - portrait/landscape

4. Change printing orientation from portrait to landscape ?

5. problems with changing the orientation from landscape to portrait

6. Change printer from Portrait to Landscape ?

7. Changing paper setup form portrait to landscape (can anyone help)

8. Changing Printer Landscape/Portrait Problem

9. Printing landscape vs portrait

10. Mixing portrait and landscape printing in VB5

11. how to combine landscape and portrait printing

12. landscape/portrait print problem

 

 
Powered by phpBB® Forum Software