Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DrawToDC
Collapse the table of content
Expand the table of content

DrawToDC method

Deprecated. Draws the contents of the element to the specified device context.

Syntax


HRESULT retVal = object.DrawToDC(hDC);

Parameters

hDC [in]

Type: HDC

An HDC specifying the device to be drawn to, typically a printer.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

As of Windows Internet Explorer 9, this method is deprecated and should not be used.

With some printers, running IHTMLElementRender::DrawToDC may cause problems. You can ensure that IHTMLElementRender::DrawToDC works properly on all printers by running IHTMLElementRender::SetDocumentPrinter method first, and then passing the modified device context to IHTMLElementRender::DrawToDC.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft