Hide Table of Contents
IPrintOut2 Method (IModelDocExtension)

Obsolete. Superseded by IModelDocExtension::IPrintOut3.

.NET Syntax

Visual Basic (Declaration) 
Sub IPrintOut2( _
   ByVal ArraySize As Integer, _
   ByRef PageArray As Integer, _
   ByVal Copies As Integer, _
   ByVal Collate As Boolean, _
   ByVal Printer As String, _
   ByVal PrintFileName As String _
) 
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim ArraySize As Integer
Dim PageArray As Integer
Dim Copies As Integer
Dim Collate As Boolean
Dim Printer As String
Dim PrintFileName As String
 
instance.IPrintOut2(ArraySize, PageArray, Copies, Collate, Printer, PrintFileName)
C# 
void IPrintOut2( 
   int ArraySize,
   ref int PageArray,
   int Copies,
   bool Collate,
   string Printer,
   string PrintFileName
)
C++/CLI 
void IPrintOut2( 
&   int ArraySize,
&   int% PageArray,
&   int Copies,
&   bool Collate,
&   String^ Printer,
&   String^ PrintFileName
) 

Parameters

ArraySize

 Number of pages to print (see Remarks)

PageArray
  • in-process, unmanaged C++: Pointer to an array of range of pages to print (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Copies
    Number of copies to print
    Collate
    True to collate copies, false to not
    Printer
    Name of the printer queue (see Remarks )
    PrintFileName
    Name of file to print to instead of Printer

    Remarks

    This method supports printing parts, assemblies, and both single and multisheet drawings.

    PageArray and ArraySize

    For a part or assembly, the ArraySize and PageArray arguments are ignored.  No dialogs or message boxes are displayed.

    PageArray contains any number of pairs of values, each pair indicating the start page and end page of a range of pages to print. For example, to print sheets 1, 2, 3, 6, and 7 of a drawing, the array should contain 4 elements; 1, 3, 6, 7. This means to print pages 1-3 and 6-7.  A range can be 5, 5, which means to print just page 5. If the array contains only one value, only that page is printed. If that one element is 0, then all sheets are printed.

    If ArraySize = 0 or PageArray argument is NULL, the all sheets are printed.

     

    PrintFileName

    To print to a file instead to a printer, set PrintFileName to a non-empty name.

    If the PrintFileName is empty, then the document is printed to the printer specified in Printer.  If that string is empty, then the document is printed to the default printer for this document. Use IModelDoc2::Printer to get or set this value.

     

    See Also

    Availability

    SolidWorks 2004 FCS, Revision Number 12.0


    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:   IPrintOut2 Method (IModelDocExtension)
    *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) 2012 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.