SaveAs Method (IDocument)

SaveAs Method (IDocument) | Send Feedback
See Also

Name
  File name to which to save the document

Options
  File type to which to save the document as defined in dsDocumentSaveAsOption_e

Errors[out]
  Status of saving the document as defined in dsDocumentSaveError_e

Obsoleted. Superseded by IDocument::SaveAs2.

# Syntax

Visual Basic |
--- | ---
    Sub SaveAs( _
       ByVal Name As System.String, _
       ByVal Options As dsDocumentSaveAsOption_e, _
       ByRef Errors As dsDocumentSaveError_e _
    )

C# |
--- | ---
    void SaveAs(
       System.string Name,
       dsDocumentSaveAsOption_e Options,
       out dsDocumentSaveError_e Errors
    )

JavaScript |
--- | ---
    SaveAs(
       Name : String,
       Options : String
    ) : String

COM native C++ |
--- | ---
    HRESULT SaveAs(
       BSTR Name,
       dsDocumentSaveAsOption_e Options,
       dsDocumentSaveError_e* Errors
    )

C++ |
--- | ---
    DSRESULT SaveAs(
       const dsString& Name,
       dsDocumentSaveAsOption_e Options,
       dsDocumentSaveError_e* Errors
    )

#### Parameters

Name
  File name to which to save the document
Options
  File type to which to save the document as defined in dsDocumentSaveAsOption_e
Errors[out] or Return Value
  Status of saving the document as defined in dsDocumentSaveError_e

# See Also

####

IDocument Interface
IDocument Members
IDocument::Save Method

# Availability

DraftSight V1R1