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. Visual Basic
  4. printing html file

printing html file

Scheduled Pinned Locked Moved Visual Basic
htmltutorialquestion
7 Posts 4 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.
  • P Offline
    P Offline
    pnpfriend
    wrote on last edited by
    #1

    how can I print html code as it looks in internet exploer using VB for example.. the text has following html code < html > < b >hello! how are you !!! < /b > < /html > vb supposes to print hello! how are you !!! in bold.

    I A 2 Replies Last reply
    0
    • P pnpfriend

      how can I print html code as it looks in internet exploer using VB for example.. the text has following html code < html > < b >hello! how are you !!! < /b > < /html > vb supposes to print hello! how are you !!! in bold.

      I Offline
      I Offline
      Ian Darling
      wrote on last edited by
      #2

      Do you mean displaying a web page in a VB program? You can use the Web Browser control on your form to do that. -- Ian Darling

      P 1 Reply Last reply
      0
      • I Ian Darling

        Do you mean displaying a web page in a VB program? You can use the Web Browser control on your form to do that. -- Ian Darling

        P Offline
        P Offline
        pnpfriend
        wrote on last edited by
        #3

        I want to print it.. I dont' know what to use.. all the given html code should be printed as we see on the web browser.

        B 1 Reply Last reply
        0
        • P pnpfriend

          I want to print it.. I dont' know what to use.. all the given html code should be printed as we see on the web browser.

          B Offline
          B Offline
          Bo Hunter
          wrote on last edited by
          #4

          There is a artical in .Net Journal about a spider crawler that has a parser library in the download. I am sure it's not as good as IE but it is managed and no COM. Bo Hunter

          1 Reply Last reply
          0
          • P pnpfriend

            how can I print html code as it looks in internet exploer using VB for example.. the text has following html code < html > < b >hello! how are you !!! < /b > < /html > vb supposes to print hello! how are you !!! in bold.

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            Hi, If you are using MS Internet controls a.ka Web Browser control then you could use. In the plethora of constants, the following can be found as a member of SHDocVwCtl.OLECMDID to be used as a parameter to ExecWB... Const OLECMDID_PRINT = 6 Const OLECMDID_PRINT2 = 49 (&H31) Const OLECMDID_PRINTPREVIEW = 7 Const OLECMDID_PRINTPREVIEW2 = 50 (&H32) The Browser control exposes ExecWB which is simply an OLE execution/action method. for example... objBrowser.ExecWB OLECMDID_PRINT Hope this helps. Regards Benkku

            A 1 Reply Last reply
            0
            • A Anonymous

              Hi, If you are using MS Internet controls a.ka Web Browser control then you could use. In the plethora of constants, the following can be found as a member of SHDocVwCtl.OLECMDID to be used as a parameter to ExecWB... Const OLECMDID_PRINT = 6 Const OLECMDID_PRINT2 = 49 (&H31) Const OLECMDID_PRINTPREVIEW = 7 Const OLECMDID_PRINTPREVIEW2 = 50 (&H32) The Browser control exposes ExecWB which is simply an OLE execution/action method. for example... objBrowser.ExecWB OLECMDID_PRINT Hope this helps. Regards Benkku

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              The CmdExecOption parameter is not optional so use... objBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER Regards Benkku

              P 1 Reply Last reply
              0
              • A Anonymous

                The CmdExecOption parameter is not optional so use... objBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER Regards Benkku

                P Offline
                P Offline
                pnpfriend
                wrote on last edited by
                #7

                thank you very much.. I got it

                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