PrintToPrinter
MethodPrintToPrinter (Method)
Prints the drawing into a printer
Syntax:
Function PrintToPrinter(sPrinterName As String, avPaperSize As AvaxPaperSize, UnitMM As Single, xAvaxMin As Single, yAvaxMin As Single, xAvaxMax As Single, yAvaxMax As Single, fSelected As Boolean, fLandScape As Boolean, fExtends As Boolean, fPrinterDialogOn As Boolean, sBmpFiles() As String) As Boolean
The PrintToPrinter method syntax consists of the following:
Parameter |
Data Type |
Description |
sPrinterName |
String |
The printer name |
avPaperSize |
An expression that defines the paper size |
|
UnitMM |
Single |
The number of mm equal to one drawing unit |
xAvaxMin |
Single |
The x coordinate of the left bottom drawing extents that will be printed |
yAvaxMin |
Single |
The y coordinate of the left bottom drawing extents that will be printed |
xAvaxMax |
Single |
The x coordinate of the right top drawing extents that will be printed |
yAvaxMax |
Single |
The y coordinate of the right top drawing extents that will be printed |
fSelected |
Boolean |
True when o.nly the selected objects are printed |
fLandScape |
Boolean |
True when the printer will print in landscape mode |
fExtends |
Boolean |
True when p.rint scale is fit to page irrespective of the selected print scale |
fPrinterDialogOn |
Boolean |
True when a. window dialog appears to select a printer and paper type |
sBmpFiles() |
String |
|
Return value:
Boolean - True on success, false on error.
Remarks:
If all the xAvaxMin, yAvaxMin, xAvaxMax and yAvaxMax are zero, then the whole drawing will be printed