在c#中导出为pdf并格式化该pdf。 [英] export to pdf in c# and formatting of that pdf.

查看:73
本文介绍了在c#中导出为pdf并格式化该pdf。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview中绑定了数据。我想将导出应用于pdf功能。比如导出到excel格式。我也导出了但是.pdf文件的格式不正确。列中有填充,两列之间的间距不固定。

如何设置该页面的格式?

提前使用。

I have bind data in gridview. And i want to apply export to pdf functionality. like export to excel format. and i have exported also but formatting of .pdf file is not correct. there is padding in columns and spacing between two columns is not fixed.
How to set the format of that page?
Thanx in Advance.

推荐答案

可能值得您调查iText以创建pdf文档。只是google iText。
might be worth you investigating iText for pdf document creation. just google iText.


export-data-from-gridview-to-pdf


我已经完成了很多解决方案。但没有得到适当的解决方案。现在使用itextSharp.dll导出为pdf但面临格式化问题。

iTextSharp.dll有助于导出。
I have gone through many solutions. but didnot get proper solution of this. And now using itextSharp.dll for export to pdf but facing problem in formatting.
iTextSharp.dll is helpful to exporting.


这篇关于在c#中导出为pdf并格式化该pdf。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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