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. a question about printing or saving data in datagridview ?

a question about printing or saving data in datagridview ?

Scheduled Pinned Locked Moved C#
questiontutorial
2 Posts 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi all, i display some data from msaccess in datagridview according to some specific search criteria. and i put 3 buttons (Word, Excel, Print) under that datagridview. with 1st button, i want to save data displayed in a doc file. with 2nd in a xls file and the last one send to a printer. how can i do this ? ;) anyone gives some information how to achieve what i wanna do ? or suggests a document to read ? thanks in advance, bye.

    M 1 Reply Last reply
    0
    • L Lost User

      hi all, i display some data from msaccess in datagridview according to some specific search criteria. and i put 3 buttons (Word, Excel, Print) under that datagridview. with 1st button, i want to save data displayed in a doc file. with 2nd in a xls file and the last one send to a printer. how can i do this ? ;) anyone gives some information how to achieve what i wanna do ? or suggests a document to read ? thanks in advance, bye.

      M Offline
      M Offline
      maryamf
      wrote on last edited by
      #2

      i think u can use stream writer and streamreader for save data or read data from the files. data set is in connection with xml . u just must add a xml file to your project and work with it. for send data to printer u can use crystal report or print prieview control(i think).if you use control u must use drawing namespace(or e.graphics for ex.) to draw your form and measure the line is in your page and your no's of print pages.

      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