great! that's was what I looking for,
thanks Mark for your help,
Adriano
"mark" <(E-Mail Removed)> wrote in message
news:6889EA3F-246B-41F6-8CB4-(E-Mail Removed)...
> Try
>
> http://www.thescarms.com/dotNet/PrintDataSet.asp
>
> "Adriano" wrote:
>
> > hello Mark,
> >
> > thanks for reply, it works great but prints the whole datagrid "as it
is",
> > including spaces only what is seen on the screen, can you please send me
a
> > code for printing data only with headers in tabular form?
> >
> > thanks,
> > Adriano
> >
> >
> >
> > "mark" <(E-Mail Removed)> wrote in message
> > news:CD09F5D6-5487-42B7-B976-(E-Mail Removed)...
> > >
> > > This example prints a DataGrid control.
> > >
> > > Example
> > > Private Sub PrintGrid_Click(ByVal sender As System.Object, ByVal e As
_
> > > System.EventArgs) Handles PrintGrid.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(DataGrid1, myPaintArgs)
> > > End Sub
> > > Compiling the Code
> > > This example requires:
> > >
> > > A Button control named PrintGrid on the form.
> > > A DataGrid control named DataGrid1.
> > > A PrintDocument component named PrintDocument1
> > > "Adriano" wrote:
> > >
> > > > hello,
> > > >
> > > > any ideas how to print the data displayed in a custom datagrid?
> > > >
> > > > thanks in advance!
> > > > Adriano
> > > >
> > > >
> > > >
> > > >
> >
> >
> >