Sets the Page Setup parameters for printing.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub SetPageSetupOptions( _
ByVal Orientation As EMVPrintOrientation, _
ByVal PaperSize As Integer, _
ByVal PaperLength As Integer, _
ByVal PaperWidth As Integer, _
ByVal Copies As Integer, _
ByVal Source As Integer, _
ByVal Printer As String, _
ByVal TopMargin As Integer, _
ByVal BottomMargin As Integer, _
ByVal LeftMargin As Integer, _
ByVal RightMargin As Integer _
) |
Visual Basic (Usage) | |
---|
Dim instance As IEModelViewControl
Dim Orientation As EMVPrintOrientation
Dim PaperSize As Integer
Dim PaperLength As Integer
Dim PaperWidth As Integer
Dim Copies As Integer
Dim Source As Integer
Dim Printer As String
Dim TopMargin As Integer
Dim BottomMargin As Integer
Dim LeftMargin As Integer
Dim RightMargin As Integer
instance.SetPageSetupOptions(Orientation, PaperSize, PaperLength, PaperWidth, Copies, Source, Printer, TopMargin, BottomMargin, LeftMargin, RightMargin)
|
C# | |
---|
void SetPageSetupOptions(
EMVPrintOrientation Orientation,
int PaperSize,
int PaperLength,
int PaperWidth,
int Copies,
int Source,
string Printer,
int TopMargin,
int BottomMargin,
int LeftMargin,
int RightMargin
) |
C++/CLI | |
---|
void SetPageSetupOptions(
& EMVPrintOrientation Orientation,
& int PaperSize,
& int PaperLength,
& int PaperWidth,
& int Copies,
& int Source,
& String^ Printer,
& int TopMargin,
& int BottomMargin,
& int LeftMargin,
& int RightMargin
) |
Parameters
- Orientation
- Page orientation as defined in EMVPrintOrientation
- PaperSize
- Use Windows printer constants (see Remarks)
- PaperLength
- Custom size in thousandths of an inch, if you are not using a standard paper size
- PaperWidth
Custom size in thousandths of an inch
- Copies
Number of copies
- Source
Paper tray source; use Windows printer constants
- Printer
Printer name
- TopMargin
Top margin in thousandths of an inch or 0 to use printer's margin
- BottomMargin
Bottom margin in thousandths of an inch or 0 to use printer's margin
- LeftMargin
Left margin in thousandths of an inch or 0 to use printer's margin
- RightMargin
Right margin in thousandths of an inch or 0 to use printer's margin
Remarks
See Also
Availability
SolidWorks eDrawings API 2005 SP0