Re: Print Gridview / Export to excel & PDF
Here I will explain how to create datatable dynamically and bind to gridview in asp.net using c#, vb.net or create temporary table and bind data to columns in datatable dynamically using asp.net in c#, vb.net.
How To Export Gridview Data To Pdf In Asp Net C#
Jul 17, 2009 04:00 AM|haku|LINK
Hi,
2 -How to print
I most case the ability to print is made using PDF. This guarantee the look of your document.
The user click on some print functionnality and then a new page containing a PDF doc is generated , the user use the print functionnality.
Here are some tools that will allow you to do that:
Usinf PDF
1 - You can use XSLFO, you make <XLS doc that will be used with an XML doc , you pass this to an XSLFO engine and it is done
2 - You use third part component dedicated to reporting (Dynamics data, Crystal report...)
Without PDF
Depending on the client browser, you can print a HTML page. IE offers these functionnality but the main problem is the print of overflow and other DHTML tag. In order to organize the print (page break;..) , you can use CSS printing extension (http://erraticwisdom.com/2007/01/22/css-printing-guide)
How To Export Data From Gridview To Pdf In Asp.net Using C#
2 -How to print a Gridview
How To Generate Pdf From Html Using Php
The problem with aGridView is that you can have multiple page.
The idea is to generate a gridview that will contain all you row and to copy only the Grid html into a new window that will be printed
How To Generate Pdf From Api2pdf
Here is an exemple of script that will do this job.
Comments are closed.