PrintOut Method (IPrintManager)

PrintOut Method (IPrintManager) | Send Feedback
See Also

Copies
  Number of copies of the active document to print

FileName

  Path and file name to which to print the active document or an empty string, which indicates to print the active document to the printer specified in IPrintManager::Printer

Sets the number of copies of the active document to print.

# Syntax

Visual Basic |
--- | ---
    Sub PrintOut( _
       ByVal Copies As System.Integer, _
       ByVal FileName As System.String _
    )

C# |
--- | ---
    void PrintOut(
       System.int Copies,
       System.string FileName
    )

JavaScript |
--- | ---
    PrintOut(
       Copies : Number,
       FileName : String
    )

COM native C++ |
--- | ---
    HRESULT PrintOut(
       LONG Copies,
       BSTR FileName
    )

C++ |
--- | ---
    DSRESULT PrintOut(
       long Copies,
       const dsString& FileName
    )

#### Parameters

Copies
  Number of copies of the active document to print
FileName

  Path and file name to which to print the active document or an empty string, which indicates to print the active document to the printer specified in IPrintManager::Printer

# Remarks

If a file of the same name already exists in the path specified in FileName, then that file is overwritten. You should check for the existence of a file before printing to a file.

# See Also

####

IPrintManager Interface
IPrintManager Members

# Availability

DraftSight V1R1