Printing an HTML file with Win32 API's...

Discussion in 'HTML' started by sammy_lb_2000, Oct 4, 2005.

  1. sammy_lb_2000, Oct 4, 2005
    1. Advertisements

  2. sammy_lb_2000

    Oli Filth Guest

    said the following on 04/10/2005 23:08:
    If you can find an appropriate renderer, such as MFC's CHtmlView, then
    of course you can (bearing in mind that a CHtmlView probably renders
    similarly to IE, i.e. shite). But this is a question that should be
    asked in a Win32/MFC/.NET NG, as it has nothing to do with HTML per se.
    Oli Filth, Oct 5, 2005
    1. Advertisements

  3. sammy_lb_2000

    rf Guest

    Oli Filth wrote
    No, you can't.

    MSHTML, the collection of objects that CHtmlView wraps, does not expose
    anything you could use a DC on. MSHTML handles all printing, and screen
    output for that matter, internally. Basically, if you can't do it with
    jscript then you can't do it with MSHTML, or CHtmlView.

    The closest you can get (apart from the IHTMLWindow3.print method) is print
    templates (search

    rf, Oct 5, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.