如何将aspx页面导出为excel,pdf格式? [英] How to export the aspx page into excel,pdf formats?
本文介绍了如何将aspx页面导出为excel,pdf格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个aspx页面,显示产品的发票清单。我想将此页面导出为excel,pdf格式。任何人都可以给我一个解决方案吗?
解决方案
您可以将页面转换为图像,然后将其转换为pdf。
要制作图像,您可以截取您的aspx页面的截图,然后将其转换为pdf。
我遇到了同样的问题,但我以不同的方式解决,就像我把价值淹没在固定的报告图像中一样。我的意思是我拍摄了没有值的报告屏幕截图,然后在运行时我在报告图像上逐像素地淹没了我的值。所以,你可以使用这个想法..
谢谢。
Rashed ::孟加拉国。
您好,
以下链接将为您提供帮助。
http://www.aspsnippets.com /Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx [ ^ ]
我认为更好用于报告帮助程序,如水晶报表或报表查看器,它的好,将aspx页面转换为pdf不是一个好主意。
此链接可以帮助你>
使用itextsharp导出为PDF [ ^ ]
I have an "aspx page" ,displaying the invoice bill for the product.I want to export this page into excel,pdf formats.can anyone give me a solution?
解决方案
You can convert the page into image and then make it pdf.
To make image you can take screenshot of your aspx page then convert it to pdf.
I have faced the same problem, But I solved in different way like that I drown the value in a fixed report image. I mean I taken a screen shot of report without value, then on runtime I drown my value pixel by pixel on the report image. So, you can use the idea..
thank you.
Rashed:: Bangladesh.
Hi,
The below link will help you.
http://www.aspsnippets.com/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx[^]
I think better use for the reporting helpers like crystal report or report viewer, its good, converting aspx page to pdf is not a good idea.
This link may help you
Export to PDF using itextsharp[^]
这篇关于如何将aspx页面导出为excel,pdf格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文