Home All Groups Group Topic Archive Search About
Author
17 Feb 2005 3:01 AM
PK9
What options are there for giving a user a printer-friendly link to print out
my datagrid?  I'm not sure how to best accomplish this.

I've seen an example where the datasource (a table) is set to a session
variable and then retrieved on the other page.  Is there any other way to
better accomplish this?
--
PK9

Author
17 Feb 2005 4:13 AM
Alvin Bruney [MVP]
another cheesy approach i have used is to catch the print event and disable
extraneous material on the page such as buttons and controls so that the
grid can print properly. That does not work if the grid is cropped though. A
much better alternative is simply to spawn an instance of excel to handle
the print routine or adobe for that matter.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Show quoteHide quote
"PK9" <P**@discussions.microsoft.com> wrote in message
news:740A1CFE-F471-4FCE-8CDA-BBFBBC3F925F@microsoft.com...
> What options are there for giving a user a printer-friendly link to print
> out
> my datagrid?  I'm not sure how to best accomplish this.
>
> I've seen an example where the datasource (a table) is set to a session
> variable and then retrieved on the other page.  Is there any other way to
> better accomplish this?
> --
> PK9