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#
  4. Print Preview

Print Preview

Scheduled Pinned Locked Moved C#
graphicswinforms
4 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.
  • V Offline
    V Offline
    vinay_K
    wrote on last edited by
    #1

    hi.. I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform.. First it should display the print preview then it as to print the Waveform.

    C P 2 Replies Last reply
    0
    • V vinay_K

      hi.. I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform.. First it should display the print preview then it as to print the Waveform.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It astounds me how often people ask questions here that require more code than anyone will write for you in a forum reply, but don't bother to google ( which usually brings you back to an article on this same site )

      Christian Graus Driven to the arms of OSX by Vista.

      V 1 Reply Last reply
      0
      • C Christian Graus

        It astounds me how often people ask questions here that require more code than anyone will write for you in a forum reply, but don't bother to google ( which usually brings you back to an article on this same site )

        Christian Graus Driven to the arms of OSX by Vista.

        V Offline
        V Offline
        vinay_K
        wrote on last edited by
        #3

        hi Christian Graus. I searched in the net, i got some solution but it is not using the bitmap to draw, but i have draw a curve on bitmap to load it to picturebox control. so i need to know how to use bitmap for Print Preview. please reply

        1 Reply Last reply
        0
        • V vinay_K

          hi.. I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform.. First it should display the print preview then it as to print the Waveform.

          P Offline
          P Offline
          praveenvkumarv
          wrote on last edited by
          #4

          button click() { capturescreen(); printpreviewdialog pd=new printpreviewdialog(); pd.showdialog(); printdocument1.print(); } bitmap memimage; graphics g=this.creategraphics(); size s=this.size; memimage=new bitmap(s.width,s.height,g); g.graphics.fromimage(memimage); g.copyfromscreen(this.location.x,this.location.y,s,0,0,s); } void printdocument1_printpage() { e.graphics.drawimage(memimage,0,0); }

          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