什么是输出的好办法一个asp.net,C#的GridView成PDF [英] What is a good way to output an asp.net, C# GridView into a PDF

查看:78
本文介绍了什么是输出的好办法一个asp.net,C#的GridView成PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用微软ReportingControls却发现他们过于累赘,太少的文档。我想一个简单的控制,将GridView控件转换成PDF文档。我开始寻找到PDFSHarp和正在运行与文档死角。与iTextSharp的同样的事情。我愿意进一步挖掘到他们,如果他们已经在过去的工作为别人着想。

I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into dead ends with documentation. Same thing with iTextSharp. I'm willing to dig into them further if they have worked for others in the past.

推荐答案

您可以遍历在你的GridView中的数据,并使用iTextSharp的其写入PDF表格。看看这里: HTTP://www.$c$cproject.com/ KB / CS / iTextSharpPdfTables.aspx

You could iterate over the data in your gridview and write it to a PDF table using iTextSharp. Have a look here: http://www.codeproject.com/KB/cs/iTextSharpPdfTables.aspx

我也建议让这本书的iText在行动

这篇关于什么是输出的好办法一个asp.net,C#的GridView成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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