Hide Table of Contents
PrintOut4 Method (IModelDocExtension)

Prints this document without displaying any dialogs or message boxes.

.NET Syntax

Visual Basic (Declaration) 
Sub PrintOut4( _
   ByVal Printer As System.String, _
   ByVal PrintFileName As System.String, _
   ByVal PrintSpecification As System.Object _
) 
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim Printer As System.String
Dim PrintFileName As System.String
Dim PrintSpecification As System.Object
 
instance.PrintOut4(Printer, PrintFileName, PrintSpecification)
C# 
void PrintOut4( 
   System.string Printer,
   System.string PrintFileName,
   System.object PrintSpecification
)
C++/CLI 
void PrintOut4( 
&   System.String^ Printer,
&   System.String^ PrintFileName,
&   System.Object^ PrintSpecification
) 

Parameters

Printer
Name of the printer to which to print (see Remarks)
PrintFileName
Name of file to which to print (see Remarks)
PrintSpecification
IPrintSpecification (see Remarks)

Example

Remarks

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

Before calling this method:

  1. Call IModelDocExtension::GetPrintSpecification to get the IPrintSpecification object for this document.
  2. Set IPrintSpecification::PrintToFile to:
    • true to print to PrintFileName.
    • false to print to Printer.
  3. Set other properties on the IPrintSpecification object.
  4. Use the IPrintSpecification object to specify PrintSpecification.

If Printer, PrintFileName, and PrintSpecification are not specified, then this method prints to the default printer specified by IModelDoc2::Printer.

 

See Also

Availability

SOLIDWORKS 2015 FCS, Revision Number 23.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:   PrintOut4 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) 2015 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.