Home All Groups Group Topic Archive Search About

How to print a DataGridView in VB.NET 2005

Author
12 Mar 2006 12:44 PM
Marc
Hallo,

can someone tell me, how i could print a datagridview?
I found in the whole net nothing :(

bye

Author
12 Mar 2006 3:52 PM
Chris
Marc wrote:
> Hallo,
>
> can someone tell me, how i could print a datagridview?
> I found in the whole net nothing :(
>
> bye
>
>

Easiest way is to use Crystal Reports and duplicate the data in there.

Chris
Author
12 Mar 2006 6:09 PM
Marc
i'm use the express edition. imho there is no crystal reports included.
is there no way easy?


Show quoteHide quote
"Chris" <no@spam.com> schrieb im Newsbeitrag
news:OnwcwzeRGHA.2156@tk2msftngp13.phx.gbl...
> Marc wrote:
>> Hallo,
>>
>> can someone tell me, how i could print a datagridview?
>> I found in the whole net nothing :(
>>
>> bye
>
> Easiest way is to use Crystal Reports and duplicate the data in there.
>
> Chris
Author
12 Mar 2006 8:56 PM
Homer J Simpson
"Marc" <bei***@gmail.com> wrote in message
news:dv1542$iu6$00$1@news.t-online.com...

> can someone tell me, how i could print a datagridview?
> I found in the whole net nothing :(

According to Microsoft:-

To create a print job

Add a PrintDocument component to your form like "Dim pd As New
Printing.PrintDocument()".
Write code to handle the PrintPage event.
You will have to code your own printing logic. Additionally, you will have
to specify the material to be printed.

Fun, huh?