gridview fixed header not printing all the rows

Posted by Sthsyed under ASP.NET on 10/20/2015 | Points: 10 | Views : 1372 | Status : [Member] | Replies : 1
I have a grid view with fixed header when i try printing it prints only one page
and not all the pages.
more over i am printing using asp panel
with labels and other texts also should be displayed.

any further information will be provided.

Thanks




Responses

Posted by: Sheonarayan on: 10/20/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Remember that when the page is printed in the browser, it prints as it is being displayed in the browser. So if your header is fixed, it will only print the header once at the top.

You can do two things here.

1. Export the page into Ms Word or excel with header on each page
2. Open a new web page and render the entire gridview with page-break css
<p style="page-break-after:always;"></p>


and when you see the print preview, you will see that all the content after above paragraph would be into another page.

Hope this will give some clue.

Thanks for asking.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sthsyed, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response