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. Graphics
  4. How to print GDI BarChart?

How to print GDI BarChart?

Scheduled Pinned Locked Moved Graphics
graphicstutorialquestion
5 Posts 2 Posters 11 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.
  • R Offline
    R Offline
    RanaSohail
    wrote on last edited by
    #1

    Hello! I have implemented a barchart on the surface of Windows-Form. how to print it into hard copy. regard, Sohail

    H 1 Reply Last reply
    0
    • R RanaSohail

      Hello! I have implemented a barchart on the surface of Windows-Form. how to print it into hard copy. regard, Sohail

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Assuming that you are using .NET, and you don't say!!! All Control descendants have a DrawToBitmap method. Use that, then all you have to do is work out how to print a Bitmap. Seriously, there are thousands of examples of how to do this, both here on CP and on t'web. Do a little Binging!

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      R 1 Reply Last reply
      0
      • H Henry Minute

        Assuming that you are using .NET, and you don't say!!! All Control descendants have a DrawToBitmap method. Use that, then all you have to do is work out how to print a Bitmap. Seriously, there are thousands of examples of how to do this, both here on CP and on t'web. Do a little Binging!

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        R Offline
        R Offline
        RanaSohail
        wrote on last edited by
        #3

        Hi! i m using .Net and have drawn a chart on windows form's client rectangle. i wanna print it. Thanks alot sir Henry.

        H 1 Reply Last reply
        0
        • R RanaSohail

          Hi! i m using .Net and have drawn a chart on windows form's client rectangle. i wanna print it. Thanks alot sir Henry.

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Then I suggest that you do as I said in the my last post. Look up the documentation for Form.DrawToBitmap, read it and experiment. After that try Googling, or Binging for c# print bitmap You might also want to consider filling your Forms client area with a Panel and drawing your bar chart on that, then use Panel.DrawToBitmap instead of the Form version.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          R 1 Reply Last reply
          0
          • H Henry Minute

            Then I suggest that you do as I said in the my last post. Look up the documentation for Form.DrawToBitmap, read it and experiment. After that try Googling, or Binging for c# print bitmap You might also want to consider filling your Forms client area with a Panel and drawing your bar chart on that, then use Panel.DrawToBitmap instead of the Form version.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            R Offline
            R Offline
            RanaSohail
            wrote on last edited by
            #5

            Thank You very much sir...! :)

            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