Solid Edge Draft Type Library
PrintArea Method
Specify 'X' coordinate of Lower left corner of selection area.
Specify 'Y' coordinate of Lower left corner of selection area.
Specify 'X' coordinate of Upper Right corner of selection area.
Specify 'Y' coordinate of Upper Right corner of selection area.
Name of printer as it appears in 'Print' dialogue box.
Number of copies.
1 for Portrait and 2 for Landscape
Paper Size
Scale
True or False
Name of file.
Specifies to print all colors as black when set to True. If this argument is not specified, colors will be printed as true color on color devices or grayscale on black-and-white devices.
Specifies that all copies are to be collated when set to True. If this argument is not specified, then the copies will not be collated. This argument only applies when printing multiple sheets in a Draft document.
Description
Prints the specified area.
Syntax
Visual Basic
Public Sub PrintArea( _
   ByVal LowerLeftX As Double, _
   ByVal LowerLeftY As Double, _
   ByVal UpperRightX As Double, _
   ByVal UpperRightY As Double, _
   Optional ByVal Printer As Variant, _
   Optional ByVal NumCopies As Variant, _
   Optional ByVal Orientation As Variant, _
   Optional ByVal PaperSize As Variant, _
   Optional ByVal Scale As Variant, _
   Optional ByVal PrintToFile As Variant, _
   Optional ByVal OutputFileName As Variant, _
   Optional ByVal ColorAsBlack As Variant, _
   Optional ByVal Collate As Variant, _
   Optional ByVal ScaleLineWidths As Variant, _
   Optional ByVal ScaleLineTypes As Variant, _
   Optional ByVal UsePrinterClipping As Variant _
) 
Parameters
LowerLeftX
Specify 'X' coordinate of Lower left corner of selection area.
LowerLeftY
Specify 'Y' coordinate of Lower left corner of selection area.
UpperRightX
Specify 'X' coordinate of Upper Right corner of selection area.
UpperRightY
Specify 'Y' coordinate of Upper Right corner of selection area.
Printer
Name of printer as it appears in 'Print' dialogue box.
NumCopies
Number of copies.
Orientation
1 for Portrait and 2 for Landscape
PaperSize
Paper Size
Scale
Scale
PrintToFile
True or False
OutputFileName
Name of file.
ColorAsBlack
Specifies to print all colors as black when set to True. If this argument is not specified, colors will be printed as true color on color devices or grayscale on black-and-white devices.
Collate
Specifies that all copies are to be collated when set to True. If this argument is not specified, then the copies will not be collated. This argument only applies when printing multiple sheets in a Draft document.
ScaleLineWidths
ScaleLineTypes
UsePrinterClipping
Example
Private Sub PrintArea_Click(sender As Object, e As EventArgs) Handles PrintArea.Click
    Dim objApplication As SolidEdgeFramework.Application = Nothing
    Dim objDraftDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet

    Try

        objApplication = Marshal.GetActiveObject("SolidEdge.Application")
        objDraftDoc = objApplication.ActiveDocument

        For Each objSheet In objDraftDoc.Sections.WorkingSection.Sheets
            Call objSheet.PrintArea(0, 0, 0.2, 0.2, "Microsoft XPS Document Writer", 1, 2, , , True, "c:\test.xps", False)
        Next
    Catch ex As Exception
        MsgBox(ex.ToString)
        Clipboard.SetText(ex.ToString)
    End Try
See Also

Sheet Object  | Sheet Members