SetPrintRange Method (IPrintManager) Send Feedback
See Also 
PrintRange
Area to print as defined in dsPrintRange_e
NamedView
Name of a user-defined view to print (see Remarks)
WithinSpecifiedWindow
True to print the area within the specified window, false to not
WinXMin
x coordinate for the lower-diagonal point of the window (see Remarks)
WinYMin
y coordinate for the lower-diagonal point of the window (see Remarks)
WinXMax
x coordinate for the upper-diagonal point of the window (see Remarks)
WinYMax
y coordinate for the upper-diagonal point of the window (see Remarks)
Sets the area to print.

Syntax

Visual Basic 
Sub SetPrintRange( _
   ByVal PrintRange As dsPrintRange_e, _
   ByVal NamedView As System.String, _
   ByVal WithinSpecifiedWindow As System.Boolean, _
   ByVal WinXMin As System.Double, _
   ByVal WinYMin As System.Double, _
   ByVal WinXMax As System.Double, _
   ByVal WinYMax As System.Double _
) 
C# 
void SetPrintRange( 
   dsPrintRange_e PrintRange,
   System.string NamedView,
   System.bool WithinSpecifiedWindow,
   System.double WinXMin,
   System.double WinYMin,
   System.double WinXMax,
   System.double WinYMax
)
JavaScript 
SetPrintRange( 
   PrintRange : String,
   NamedView : String,
   WithinSpecifiedWindow : Boolean,
   WinXMin : Number,
   WinYMin : Number,
   WinXMax : Number,
   WinYMax : Number
)
COM native C++ 
HRESULT SetPrintRange( 
   dsPrintRange_e PrintRange,
   BSTR NamedView,
   VARIANT_BOOL WithinSpecifiedWindow,
   DOUBLE WinXMin,
   DOUBLE WinYMin,
   DOUBLE WinXMax,
   DOUBLE WinYMax
) 
C++ 
DSRESULT SetPrintRange( 
   dsPrintRange_e PrintRange,
   const dsString& NamedView,
   bool WithinSpecifiedWindow,
   double WinXMin,
   double WinYMin,
   double WinXMax,
   double WinYMax
) 

Parameters

PrintRange
Area to print as defined in dsPrintRange_e
NamedView
Name of a user-defined view to print (see Remarks)
WithinSpecifiedWindow
True to print the area within the specified window, false to not
WinXMin
x coordinate for the lower-diagonal point of the window (see Remarks)
WinYMin
y coordinate for the lower-diagonal point of the window (see Remarks)
WinXMax
x coordinate for the upper-diagonal point of the window (see Remarks)
WinYMax
y coordinate for the upper-diagonal point of the window (see Remarks)

Remarks

To set this parameter... Set...
NamedView PrintRange to dsPrintRange_e.dsPrintRange_NamedView
WithinSpecifiedWindow

PrintRange to:

  • dsPrintRange_e.dsPrintRange_DrawingBoundary,
  • dsPrintRange_e.dsPrintRange_CurrentView,
  • dsPrintRange_e.dsPrintRange_NamedView, or
  • dsPrintRange_e.dsPrintRange_SpecifyWindow
  • WinXMin, WinYMin, WinXMax, and WinYMax WithinSpecifiedWindow to true

     

    See Also

    Availability

    DraftSight V1R1.1