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. How to Print a web page

How to Print a web page

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++helpquestion
6 Posts 3 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.
  • A Offline
    A Offline
    Ankush Mehta
    wrote on last edited by
    #1

    Hi all, 1) i want to print a web page using vc++ 6.0.Please Guide how it can be done if the default web browser is IE(i am using IE 5.0). 2)Is there any way that we can print a web page without worrying much about the web browser we are using? Please Help! Thanks in anticipation! Regards, Ankush Mehta Ankush Mehta

    P D 2 Replies Last reply
    0
    • A Ankush Mehta

      Hi all, 1) i want to print a web page using vc++ 6.0.Please Guide how it can be done if the default web browser is IE(i am using IE 5.0). 2)Is there any way that we can print a web page without worrying much about the web browser we are using? Please Help! Thanks in anticipation! Regards, Ankush Mehta Ankush Mehta

      P Offline
      P Offline
      peterchen
      wrote on last edited by
      #2

      You could load it into a HTML view (or with a bit more manual labour directly into a IE window), and call IHTMLWindow3::print on it.


      We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
      boost your code || Fold With Us! || sighist

      A 1 Reply Last reply
      0
      • A Ankush Mehta

        Hi all, 1) i want to print a web page using vc++ 6.0.Please Guide how it can be done if the default web browser is IE(i am using IE 5.0). 2)Is there any way that we can print a web page without worrying much about the web browser we are using? Please Help! Thanks in anticipation! Regards, Ankush Mehta Ankush Mehta

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Is this of any help: rundll32.exe C:\WINDOWS\system32\mshtml.dll,PrintHTML c:\myfile.htm


        "Take only what you need and leave the land as you found it." - Native American Proverb

        A 1 Reply Last reply
        0
        • P peterchen

          You could load it into a HTML view (or with a bit more manual labour directly into a IE window), and call IHTMLWindow3::print on it.


          We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
          boost your code || Fold With Us! || sighist

          A Offline
          A Offline
          Ankush Mehta
          wrote on last edited by
          #4

          Hi Peter, As i am not much informed on this topic, can u olease elaborate. possibly give some code snippet. Regards, Ankush Ankush Mehta

          1 Reply Last reply
          0
          • D David Crow

            Is this of any help: rundll32.exe C:\WINDOWS\system32\mshtml.dll,PrintHTML c:\myfile.htm


            "Take only what you need and leave the land as you found it." - Native American Proverb

            A Offline
            A Offline
            Ankush Mehta
            wrote on last edited by
            #5

            Hi DavidCrow, As i am not much informed on this topic, can u please elaborate. possibly give some code snippet. Regards, Ankush Mehta

            D 1 Reply Last reply
            0
            • A Ankush Mehta

              Hi DavidCrow, As i am not much informed on this topic, can u please elaborate. possibly give some code snippet. Regards, Ankush Mehta

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Use ShellExecute() with the command I provided.


              "Take only what you need and leave the land as you found it." - Native American Proverb

              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