PrintTohDC
MethodPrintTohDC (Method)
Prints the drawing into a hDC
Syntax:
Function PrintTohDC(hDCToPrint As Integer, lWidth As Integer, lHeight As Integer, fSelected As Boolean, lLeft As Integer, lTop As Integer, xMin As Single, yMin As Single, xMax As Single, yMax As Single, sScale As Single) As Boolean
The PrintTohDC method syntax consists of the following:
Parameter |
Data Type |
Description |
hDCToPrint |
Integer |
The specific hDC |
lWidth |
Integer |
The width of the hDC window |
lHeight |
Integer |
The height of the hDC window |
fSelected |
Boolean |
True when o.nly the selected objects are printed |
lLeft |
Integer |
The distance between the left edge of the drawing and the left edge of the hDC window |
lTop |
Integer |
The distance between the top edge of the drawing and the top edge of the hDC window |
xMin |
Single |
The x coordinate of the left bottom drawing extents that will be printed |
yMin |
Single |
The y coordinate of the left bottom drawing extents that will be printed |
xMax |
Single |
The x coordinate of the right top drawing extents that will be printed |
yMax |
Single |
The y coordinate of the right top drawing extents that will be printed |
sScale |
Single |
The plot scale |
Return value:
Boolean - True on success, false on error.
Remarks:
If all the xMin, yMin, xMax and yMax are zero, then the whole drawing will be printed