简体   繁体   中英

how to generate a pdf report from asp.net web page

I have a web page in my application, which has two pictures in the header, a table after this header with two rows and 2 columns (In this table I have textbox for entering item Id), then a gridview to display the records of particular item, and at the end I have another table after the "gridview" (In this table I have another textbox to display total no.of records). If I enter just itemId, then it display all the records of that item in the gridview and total no.of records in the textbox. I have to repeate this process for 170 items, kindly show me some solution to get all the items data just in a click, but for every item (the header and two tables must be repeated).., and if this output either I can save in pdf file or as word file..

Thanks in advance..

我建议您使用JSPDF ...简单又好: http ://parall.ax/products/jspdf

What I have used in the past it is iTextSharp. I think it is one of the most powerful open source frameworks available to work with PDFs in general.

Here are some code sample on how to use it:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM