Results 1 to 4 of 4

Thread: DataGridView Printing

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2012
    Posts
    47

    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
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,372

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2012
    Posts
    47

    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
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,372

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

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



Click Here to Expand Forum to Full Width