Hide Table of Contents
SetPrintRange Method (IPrintManager)

Sets the area to print.

.NET Syntax

Visual Basic (Declaration) 
Sub SetPrintRange( _
   dsPrintRange_e PrintRange As dsPrintRange_e, _
   const 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 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)

Example

See the IPrintManager examples.

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 and PrintRange to dsPrintRange_e.dsPrintRange_SpecifyWindow

If you set PrintRange to dsPrintRange_e.dsPrintRange_AllGeometry, then all other parameter values are ignored.

 

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:   SetPrintRange 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) 2023 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.