Gridview转换为PDF,每页都有重复的列标题 [英] Gridview to PDF with repeated column header every page
问题描述
我正在开发一个Web应用程序,我想将gridview导出为pdf。我正在使用Itextsharp.dll和itextsharp.xmlworker.dll(版本5.2.1.0)将gridview导出为pdf。它适用于常见的页眉和页脚。问题是当我使用pdfwriter.PageEvent方法为pdf的每个页面生成重复列标题时,列的对齐和宽度不正确。请建议我或让我知道是否有任何其他工具出口gridview到pdf。
提前谢谢你。
Hi,
I am developing a web application, where i want to export gridview to pdf. I am using Itextsharp.dll and itextsharp.xmlworker.dll (version 5.2.1.0) for exporting gridview to pdf. Its working fine for the common header and footer. Issue is when i use pdfwriter.PageEvent method to generate repeat column header for every page of the pdf, alignment and width of the column is not correct. Kindly suggest me or let me know if any other tool for export gridview to pdf.
Thank you in advance.
推荐答案
看看这个链接:
如何使用C#将GridView数据转换为Excel,PDF,Word文件 [ ^ ]
http://forums.asp.net/t/1412788.aspx [ ^ ]
http://stackoverflow.com/questions / 13853475 / export-to-pdf-from-gridview [ ^ ]
Look at this links:
How to convert GridView data to Excel, PDF, Word file using C#[^]
http://forums.asp.net/t/1412788.aspx[^]
http://stackoverflow.com/questions/13853475/export-to-pdf-from-gridview[^]
这篇关于Gridview转换为PDF,每页都有重复的列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!