Printer-Friendly DataGrid option

P

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?
 
A

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top