简体   繁体   English

以pdf报告导出

[英]export in pdf report

I have a web report(.aspx page). 我有一个网络报告(.aspx页面)。 I like to have a functionality to export that report into pdf format. 我希望能够将该报告导出为pdf格式。 Is there any way I can export it to PDF format without using any third party control or product? 有没有什么办法可以在不使用任何第三方控件或产品的情况下将其导出为PDF格式?

Or any other way I can use report viewer control's export feature in web page and hiding report viewer control? 或者我可以在网页中使用报表查看器控件的导出功能并隐藏报表查看器控件的任何其他方式?

Export to PDF 导出为PDF

Yes, you can do it, but I think this would be highly inefficient and possibly difficult and time consuming. 是的,你可以做到,但我认为这样效率很低,可能既困难又耗时。 In a nutshell, you would be writing your own "to PDF" library - just like the ones that already exist, so, why reinvent the wheel? 简而言之,您将编写自己的“to PDF”库 - 就像已经存在的库一样,为什么要重新发明轮子?

If you are willing to use a third party control (some of them are free, or even open source), you have some better options: 如果您愿意使用第三方控件(其中一些是免费的,甚至是开源的),您有一些更好的选择:

If you are still not willing to use a third party control, and don't want to create the library yourself, you have some other odd options : 如果您仍然不愿意使用第三方控件,并且不想自己创建库,那么您还有其他一些奇怪的选择:

  • Have your client "print" the page to their installed PDF printer (like CutePDF) 让您的客户将页面“打印”到他们安装的PDF打印机(如CutePDF)
  • Convert the page into an image, and from there into a PDF 将页面转换为图像,然后从那里转换为PDF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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