PC Review


Reply
Thread Tools Rate Thread

DataGrid print (newbie)

 
 
Adriano
Guest
Posts: n/a
 
      10th Aug 2004
hello,

any ideas how to print the data displayed in a custom datagrid?

thanks in advance!
Adriano



 
Reply With Quote
 
 
 
 
Adriano
Guest
Posts: n/a
 
      19th Aug 2004
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
> >
> >
> >
> >



 
Reply With Quote
 
Adriano
Guest
Posts: n/a
 
      20th Aug 2004
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
> > > >
> > > >
> > > >
> > > >

> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie needs help with datagrid =?Utf-8?B?UkJlbGw=?= Microsoft VB .NET 2 6th Jun 2006 01:33 PM
C# Datagrid Newbie: =?Utf-8?B?TmlnZWw=?= Microsoft C# .NET 2 25th May 2005 02:32 PM
Newbie with Datagrid Wizard Microsoft ASP .NET 3 3rd Mar 2005 09:43 AM
Newbie datagrid help =?Utf-8?B?RGF2ZQ==?= Microsoft Dot NET Framework Forms 1 5th Nov 2004 07:29 AM
Datagrid Newbie Help Dougie Microsoft C# .NET 1 3rd Jun 2004 11:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:05 AM.