Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Programattically pressing "Print" in IE5

Programattically pressing "Print" in IE5

Scheduled Pinned Locked Moved C / C++ / MFC
htmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jeremy Davis
    wrote on last edited by
    #1

    My app generates HTML reports, and displays them in IE5. What I now need to do is to display the report in IE5, and THEN print it / press print in IE5. Does anyone know how please???

    J 1 Reply Last reply
    0
    • J Jeremy Davis

      My app generates HTML reports, and displays them in IE5. What I now need to do is to display the report in IE5, and THEN print it / press print in IE5. Does anyone know how please???

      J Offline
      J Offline
      J Diamond
      wrote on last edited by
      #2

      You need to use the IWebBrowser2 interface. Call the method ExecWB with these parameters: ExecWB( OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT, NULL, NULL );

      J 1 Reply Last reply
      0
      • J J Diamond

        You need to use the IWebBrowser2 interface. Call the method ExecWB with these parameters: ExecWB( OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT, NULL, NULL );

        J Offline
        J Offline
        Jeremy Davis
        wrote on last edited by
        #3

        Great! Thanks I'll try that....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups