datagridview printing...

I was wondering if anyone had ne luck printing datagridviews with multiple pages, and allowing column span to other pages using vb .net 2.0 windows forms? how would i go about accomplishing this i am new to the GDI + stuff.
rbirnesserAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Private Sub mnuPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPrint.Click

        PrintDocument1.Print()

    End Sub

    Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim myPaintArgs As New PaintEventArgs(e.Graphics, New Rectangle(New Point(0, 0), Me.Size))
        Me.InvokePaint(dgv, myPaintArgs)
    End Sub

Bob

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rbirnesserAuthor Commented:
I tried that it prints the grid lines ok the but the text is micro.  I was also looking for a solution that you can use print preview with? any ideas also in the code above what object does the printdocument1 document property need to be set to ?
Bob LearnedCommented:
No, I don't have any ideas.

Bob
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

rbirnesserAuthor Commented:
I solved this issue myself, but i still accepted your answer because it works and you are the only one who has given effort.
Bob LearnedCommented:
How did you solve it?

Bob
rbirnesserAuthor Commented:
Using a plugin called DataGridView Columns 2.0 by a company called rustemsoft perfect solution for what i need and it was only 60 bucks and has alot of other things included also.  www.rustemsoft.com
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.