将ASP.NET网页转换为PDF [英] Convert ASP.NET web page to PDF

查看:94
本文介绍了将ASP.NET网页转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用ASP.NET按钮单击将.aspx页面转换为PDF文件?有谁知道请帮助我?

解决方案

试试这个,

使用ASP.NET从HTML页面生成PDF文档 [ ^ ]


我最近已经开始使用了这个,我建议你选择iTextSharp。

我尝试了很多方法,最后将其作为最佳解决方案。

他们为转换提供了非常好的支持。

并在'htmltopdf'的帮助下(搜索这个term),您可以将部分HTML格式转换为PDF格式。

查看较新版本的iTextSharp(版本5)。

如果您需要更多帮助,请具体而言,我会帮助您。


如果您正在进行任何报告,您可以使用Microsoft RDLC报告,在某些事件中您可以将其导出为PDF,Excel等

How can i convert an .aspx page to a PDF file in button click using ASP.NET? Can anybody who knows please help me?

解决方案

Try this,
Generate PDF documents from a HTML page using ASP.NET[^]


I have gone thorugh this recently, I suggest you to go with iTextSharp.
I have tried many ways and finally concluded it as a best available solution.
They provide very good support for Conversion.
And with help of 'htmltopdf'(search this term), You will be able to convert part of HTML to PDF.
Go for the newer version of iTextSharp(version 5).
If you need more assistance then please be specific on it, I will help you for sure.


If you are doing any report , you can use Microsoft RDLC Report and on certain event you can export it to PDF , Excel Etc.


这篇关于将ASP.NET网页转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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