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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Printing a Window Form

Printing a Window Form

Scheduled Pinned Locked Moved C#
csharpjson
9 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.
  • V Offline
    V Offline
    Vipin Venugopal
    wrote on last edited by
    #1

    Hi Friends, I am having an windows application created using C#. Its having a MDI form and many child forms. What i have to do is when i click a menu from the MDI window i get a form having a datagrid and many other calculations done and at the end of the page i have a print button. I want to print that entire page when i click the print button. I got a code from google but what it does is capture the screen and then prints. since it captures only what we can see in the screen i dont get the rest of the content which is visible only if i scroll down the window. i want the entire page to be printed. Vipin

    N N 2 Replies Last reply
    0
    • V Vipin Venugopal

      Hi Friends, I am having an windows application created using C#. Its having a MDI form and many child forms. What i have to do is when i click a menu from the MDI window i get a form having a datagrid and many other calculations done and at the end of the page i have a print button. I want to print that entire page when i click the print button. I got a code from google but what it does is capture the screen and then prints. since it captures only what we can see in the screen i dont get the rest of the content which is visible only if i scroll down the window. i want the entire page to be printed. Vipin

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Look up PrintDocument. You will need to handle the events such as OnBeginPrint and OnPrintPage to format your data and print it to the printer.

      V 1 Reply Last reply
      0
      • N Not Active

        Look up PrintDocument. You will need to handle the events such as OnBeginPrint and OnPrintPage to format your data and print it to the printer.

        V Offline
        V Offline
        Vipin Venugopal
        wrote on last edited by
        #3

        can u please send me the code to print the entire form. Vipin

        N 1 Reply Last reply
        0
        • V Vipin Venugopal

          can u please send me the code to print the entire form. Vipin

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Send me your specifications and I'll write the application for you. You have to do some things on your own. Do a little research on the subjects I pointed out and if you have specific questions about something you don't understand or isn't working then ask, but don't ask to have someone do your work for you.

          R 1 Reply Last reply
          0
          • N Not Active

            Send me your specifications and I'll write the application for you. You have to do some things on your own. Do a little research on the subjects I pointed out and if you have specific questions about something you don't understand or isn't working then ask, but don't ask to have someone do your work for you.

            R Offline
            R Offline
            Robert Rohde
            wrote on last edited by
            #5

            Mark Nischalke wrote:

            Send me your specifications and I'll write the application for you.

            Now thats cool. I'll come back to ya next week when I have really lots of stuff to do... :laugh:

            N 1 Reply Last reply
            0
            • R Robert Rohde

              Mark Nischalke wrote:

              Send me your specifications and I'll write the application for you.

              Now thats cool. I'll come back to ya next week when I have really lots of stuff to do... :laugh:

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              ...and the week after that I'll send you my bill. :laugh:

              1 Reply Last reply
              0
              • V Vipin Venugopal

                Hi Friends, I am having an windows application created using C#. Its having a MDI form and many child forms. What i have to do is when i click a menu from the MDI window i get a form having a datagrid and many other calculations done and at the end of the page i have a print button. I want to print that entire page when i click the print button. I got a code from google but what it does is capture the screen and then prints. since it captures only what we can see in the screen i dont get the rest of the content which is visible only if i scroll down the window. i want the entire page to be printed. Vipin

                N Offline
                N Offline
                Nader Elshehabi
                wrote on last edited by
                #7

                Hello It just happen that I've authored a component to do this exact job:) -ie. printing forms- You'll find the article in this link http://www.codeproject.com/csharp/ControlPrint.asp[^] Regards:rose:

                N 1 Reply Last reply
                0
                • N Nader Elshehabi

                  Hello It just happen that I've authored a component to do this exact job:) -ie. printing forms- You'll find the article in this link http://www.codeproject.com/csharp/ControlPrint.asp[^] Regards:rose:

                  N Offline
                  N Offline
                  Not Active
                  wrote on last edited by
                  #8

                  :mad: You just cut off my revenue stream for the month. I was going to do the work for him ;P

                  N 1 Reply Last reply
                  0
                  • N Not Active

                    :mad: You just cut off my revenue stream for the month. I was going to do the work for him ;P

                    N Offline
                    N Offline
                    Nader Elshehabi
                    wrote on last edited by
                    #9

                    Hey!! No hard feelings partner.;)

                    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