GetPrintRange Method (IPrintManager)

GetPrintRange Method (IPrintManager) | Send Feedback
See Also

PrintRange[out]
  Area to print as defined in dsPrintRange_e

NamedView[out]
  Name of the user-defined view to print (see Remarks)

WithinSpecifiedWindow[out]
  True to print the area within the specified window, false to not (see Remarks)

WinXMin[out]
  x coordinate of the lower-diagonal point of the window (see Remarks)

WinYMin[out]
  y coordinate of the lower-diagonal point of the window (see Remarks)

WinXMax[out]
  x coordinate of the upper-diagonal point of the window (see Remarks)

WinYMax[out]
  y coordinate of the upper-diagonal point of the window (see Remarks)

Gets the area to print.

# Syntax

Visual Basic |
--- | ---
    Sub GetPrintRange( _
       ByRef PrintRange As dsPrintRange_e, _
       ByRef NamedView As System.String, _
       ByRef WithinSpecifiedWindow As System.Boolean, _
       ByRef WinXMin As System.Double, _
       ByRef WinYMin As System.Double, _
       ByRef WinXMax As System.Double, _
       ByRef WinYMax As System.Double _
    )

C# |
--- | ---
    void GetPrintRange(
       out dsPrintRange_e PrintRange,
       out System.string NamedView,
       out System.bool WithinSpecifiedWindow,
       out System.double WinXMin,
       out System.double WinYMin,
       out System.double WinXMax,
       out System.double WinYMax
    )

JavaScript |
--- | ---
    GetPrintRange(
    ) : {
       PrintRange : String,
       NamedView : String,
       WithinSpecifiedWindow : Boolean,
       WinXMin : Number,
       WinYMin : Number,
       WinXMax : Number,
       WinYMax : Number
    }

COM native C++ |
--- | ---
    HRESULT GetPrintRange(
       dsPrintRange_e* PrintRange,
       BSTR* NamedView,
       VARIANT_BOOL* WithinSpecifiedWindow,
       DOUBLE* WinXMin,
       DOUBLE* WinYMin,
       DOUBLE* WinXMax,
       DOUBLE* WinYMax
    )

C++ |
--- | ---
    DSRESULT GetPrintRange(
       dsPrintRange_e* PrintRange,
       dsString* NamedView,
       bool* WithinSpecifiedWindow,
       double* WinXMin,
       double* WinYMin,
       double* WinXMax,
       double* WinYMax
    )

#### Parameters

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

# Remarks

This parameter... | Depends on...
NamedView | PrintRange being dsPrintRange_e.dsPrintRange_NamedView
WithinSpecifiedWindow | PrintRange being: dsPrintRange_e.dsPrintRange_DrawingBoundary, dsPrintRange_e.dsPrintRange_CurrentView, dsPrintRange_e.dsPrintRange_NamedView, or dsPrintRange_e.dsPrintRange_SpecifyWindow
WinXMin, WinYMin, WinXMax, and WinYMax | WithinSpecifiedWindow being true

# See Also

####

IPrintManager Interface
IPrintManager Members
IPrintManager::SetPrintRange Method

# Availability

DraftSight V1R1.1