This property sets the orientation of the paper.

[Visual Basic]   imagekitcontrolname.PrintDraw.Orientation[ = Integer ]
[Visual C++]     [ short = ]imagekitcontrolname.GetPrintDraw().GetOrientation() imagekitcontrolname.GetPrintDraw().SetOrientation(short Val)
[VB.NET]   imagekitcontrolname.PrintDraw.Orientation[ = Short ]
[C#.NET]   imagekitcontrolname.PrintDraw.Orientation[ = short ]

Property Value

Value Explanation
1 Vertical or Protrait (DMORIENT_PORTRAIT)
2 Horizontal or Landscape (DMORIENT_LANDSCAPE)

( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI

Explanation

The Orientation property sets the orientation of the paper. To retrieve the Orientation property value, first execute the GetDevModeHandle or GetDevModeInfo method, after which the value can be retrieved from the Orientation property. To set the value of the Orientation property, execute the SetDevModeInfo method.


Note: The Orientation setting is dependent upon the printer driver. Because of this, it is possible that the setting has no affect or an affect different than expected. For details about printing orientation, please refer to the printer manufacturer's manual.

Setting this value

  This value can be set at runtime.

Retrieving this value

  This value canbe retrieved at runtime.

 

The ImageKit9 ActiveX is a product created by Newtone Corporation