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 windows form

Printing windows form

Scheduled Pinned Locked Moved Visual Basic
csharp
5 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.
  • J Offline
    J Offline
    johnjsm
    wrote on last edited by
    #1

    Hi, I have a windows form and I want to print the contents of it. Is it possible to do this in vb.net

    D S 2 Replies Last reply
    0
    • J johnjsm

      Hi, I have a windows form and I want to print the contents of it. Is it possible to do this in vb.net

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      It is. There is an article here[^] that gives one way to do it, and there is also an MS control that emulates the old VB6 "PrintForm" command in the Visual basic Power packs...

      '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

      J 1 Reply Last reply
      0
      • D Duncan Edwards Jones

        It is. There is an article here[^] that gives one way to do it, and there is also an MS control that emulates the old VB6 "PrintForm" command in the Visual basic Power packs...

        '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

        J Offline
        J Offline
        johnjsm
        wrote on last edited by
        #3

        Hi, Will this work with VB.net 2003. also I can't find the component. Can you help. Thanks

        D 1 Reply Last reply
        0
        • J johnjsm

          Hi, I have a windows form and I want to print the contents of it. Is it possible to do this in vb.net

          S Offline
          S Offline
          sthotakura
          wrote on last edited by
          #4

          Check out the below link http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage(VS.71).aspx[^]

          Cheers, Suresh

          1 Reply Last reply
          0
          • J johnjsm

            Hi, Will this work with VB.net 2003. also I can't find the component. Can you help. Thanks

            D Offline
            D Offline
            Duncan Edwards Jones
            wrote on last edited by
            #5

            It doesn't work with VB.Net 2003 because the code is written with VS 2005 and uses some of the newer language features such as generic collections. You could just use the compiled component if you have someone who has VS2005 to compile it up for you or move your code to VS2005? (The component is in the source code attached to the article)

            '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

            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