Object Reference > Chart2D Object > 2DChart Object Methods > DrawToDC Method (Chart2D) |
DrawToDC Method (Chart2D)
Draws the chart on a specified device. Left, Top, Width and Height are measured in pixels.
Function DrawToDC(Hdc As Long, Format As FormatConstants, Scale As ScaleConstants, Left As Long, Top As Long, Width As Long, Height As Long) As Boolean
Returns TRUE on success, FALSE on failure.
Part |
Type |
Description |
Hdc |
Long |
Microsoft Windows device context handle. |
Format |
Integer |
Print format used. See Format Constants for valid values. |
Scale |
String |
Scaling to perform when drawing. See Scale Constants for valid values. |
Left |
Long |
Offset from left edge of page. |
Top |
Long |
Offset from top of page. |
Width |
Long |
Width of drawn image. |
Height |
Long |
Height of drawn image. |
See Also