导出 pdf 报告

发布于 2024-09-13 01:28:18 字数 141 浏览 2 评论 0原文

我有一个网络报告(.aspx 页面)。我喜欢有一个功能可以将该报告导出为 pdf 格式。有什么方法可以在不使用任何第三方控件或产品的情况下将其导出为 PDF 格式吗?

或者我可以通过任何其他方式在网页中使用报表查看器控件的导出功能并隐藏报表查看器控件?

I have a web report(.aspx page). I like to have a functionality to export that report into pdf format. Is there any way I can export it to PDF format without using any third party control or product?

Or any other way I can use report viewer control's export feature in web page and hiding report viewer control?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野却迷人 2024-09-20 01:28:18

导出为 PDF

是的,您可以这样做,但我认为这效率非常低,而且可能很困难且耗时。简而言之,您将编写自己的“to PDF”库 - 就像已经存在的库一样,那么,为什么要重新发明轮子呢?

如果您愿意使用第三方控件(其中一些是免费的,甚至是开源的),您有一些更好的选择:

如果您仍然不愿意使用第三方控件,并且不想自己创建库,您还有其他一些奇怪的选择:

  • 让您的客户将页面“打印”到他们安装的 PDF 打印机(如 CutePDF)
  • 将页面转换为图像,然后从那里转换为 PDF

Export to 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?

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)
  • Convert the page into an image, and from there into a PDF
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文