Hide Table of Contents
GetPrintRange Method (IPrintManager)

Gets the area to print.

.NET Syntax

Visual Basic (Declaration) 
Sub GetPrintRange( _
   dsPrintRange_e* PrintRange As dsPrintRange_e, _
   dsString* NamedView As System.String, _
   bool* WithinSpecifiedWindow As System.Boolean, _
   double* WinXMin As System.Double, _
   double* WinYMin As System.Double, _
   double* WinXMax As System.Double, _
   double* 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

    Availability

    DraftSight V1R1.1


    Provide feedback on this topic

    SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

    * Required

     
    *Email:  
    Subject:   Feedback on Help Topics
    Page:   GetPrintRange Method (IPrintManager)
    *Comment:  
    *   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

    Print Topic

    Select the scope of content to print:

    x

    We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

     Never show this message again
    x

    Web Help Content Version: API Help (English only) 2019 SP05

    To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

    To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.