Connecting Tech Pros Worldwide Help | Site Map

Printing Large amounts of GridView data

Newbie
 
Join Date: Nov 2007
Posts: 7
#1: Feb 13 '09
All,

I've got a GridView in a scrollable panel (in ASP.NET 2.0), which when printed will remove the scrolling part and expand to fit the whole GridView in which is OK - prints fine. I've also got a chart on the page that will graphically represent the data. All printing is ok, except when I retrieve large volumes of data.

However, when I retrieve lots of data, the GridView does not fit on the page (either Portrait/Landscape).

Whats the best way to send this to print?

I'm guessing to create a seperate print page, putting in necessary page breaks where needed?

Anyone got any good links?

Cheers,
Newbie
 
Join Date: Nov 2008
Posts: 3
#2: Oct 12 '09

re: Printing Large amounts of GridView data


use javascript function.....

<script type="javascript">
function Print()
{
window.print();
}
</script>
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#3: Oct 14 '09

re: Printing Large amounts of GridView data


Quote:

Originally Posted by Andez View Post

I'm guessing to create a seperate print page, putting in necessary page breaks where needed?

That would be my suggestion.
You can use CSS for printing to help with that.

Cheers!

-Frinny
Reply

Tags
asp.net, formatting, gridview, print, printout