如何将ASP .NET网页上的动态创建表导出为PDF [英] How to export Dynamically Created Table on the ASP .NET web page to PDF

查看:66
本文介绍了如何将ASP .NET网页上的动态创建表导出为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨亲爱的所有





我有一个包含段落和动态创建表格的asp .net页面。

该表将填充从数据库中获取的值。页面工作正常。但是当我尝试转换为pdf时,表格不会显示在pdf文件中,但所有段落都显示正常。可以请任何人告诉我如何将页面上动态创建的表格导出为pdf ..





谢谢....

Hi Dear All


I have an asp .net page containing paragraphs and a dynamically created table.
The table will be populated with values taken from the database.The Page works fine.But when ever I try to convert into pdf The table is not displayed on the pdf file but all paragraphs are displayed fine..Could any one please tell me how to export this dynamically created table on the page to pdf..


Thank You....

推荐答案

以Html格式转换数据表记录然后您可以轻松转换数据表记录pdf。
Convert Datatable Records in Html Format Then You easily Convert Datatable Records In pdf.


有一篇非常好的文章,其中包含示例代码和演示你可以试试



http://www.aspsnippets.com/Articles/Export-DataSet-or-DataTable-to-Word-Excel-PDF-and-CSV-Formats.aspx [ ^ ] br />


如果有帮助,请标记解决方案
There is very good article that has sample code and a demo you can try for

http://www.aspsnippets.com/Articles/Export-DataSet-or-DataTable-to-Word-Excel-PDF-and-CSV-Formats.aspx[^]

If that has helped you please mark the solution


这篇关于如何将ASP .NET网页上的动态创建表导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆