Results 1 to 4 of 4

Thread: DataGridView Printing

  1. #1
    Member
    Join Date
    Jun 12
    Posts
    41

    DataGridView Printing

    Hello,



    I need help with in program... The part I need help is, I wont my datagridview data to show on print prieview.



    I have in form that retrieve data from SQL using a datagridview, but i also wont in to show up in a print preview, when I click a button. Can some please help.

  2. #2
    .Net Member dday9's Avatar
    Join Date
    Mar 11
    Location
    South Louisiana
    Posts
    2,187

    Re: DataGridView Printing

    There are two examples that I can think of off hand that will print the datagridview data. One is here, converted by Berthold Simon on post #10. The other is here, posted by .paul. . I've personally used the one in the first link many of times, where as I've only glanced at the one submitted by .paul.

  3. #3
    Member
    Join Date
    Jun 12
    Posts
    41

    Re: DataGridView Printing

    I still having in hard time with it. I tried the example you mention. But when I input my own datagridview table, it throw me a error. Can someone please help. The code you mention, look like to br the one. But I it still not show print preview for me.

  4. #4
    .Net Member dday9's Avatar
    Join Date
    Mar 11
    Location
    South Louisiana
    Posts
    2,187

    Re: DataGridView Printing

    It sounds like you have some eels in your hovercraft(creds to TechGnome). Take a look here and it should help you to help us.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •