GetPaperSize Method (IPrintManager)

GetPaperSize Method (IPrintManager) | Send Feedback
See Also Example

Length[out]
  Length of paper

Width[out]
  Width of paper

Gets the size of the paper.

# Syntax

Visual Basic |
--- | ---
    Sub GetPaperSize( _
       ByRef Length As System.Double, _
       ByRef Width As System.Double _
    )

C# |
--- | ---
    void GetPaperSize(
       out System.double Length,
       out System.double Width
    )

JavaScript |
--- | ---
    GetPaperSize(
    ) : {
       Length : Number,
       Width : Number
    }

COM native C++ |
--- | ---
    HRESULT GetPaperSize(
       DOUBLE* Length,
       DOUBLE* Width
    )

C++ |
--- | ---
    DSRESULT GetPaperSize(
       double* Length,
       double* Width
    )

#### Parameters

Length[out]
  Length of paper
Width[out] or Return Value
  Width of paper

# Example

Get and Set Print Options (C#)
Get and Set Print Options (VB.NET)
Get and Set Print Options (VBA)

# Remarks

Units (inches or millimeters) for Length and Width are dependent on the paper size.

# See Also

####

IPrintManager Interface
IPrintManager Members
IPrintManager::AvailablePaperSizes Method
IPrintManager::PaperSize Property
IPrintManager::SetClosestValidPaperSize Method

# Availability

DraftSight V1R1