使用iTextSharp的一个Excel文档创建PDF报告 [英] Creating pdf report from a excel document using iTextSharp

查看:157
本文介绍了使用iTextSharp的一个Excel文档创建PDF报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建使用iTextSharp的PDF报表。
我有一个Excel的样品,这是我需要创建它的PDF格式的精确副本,并在该报告。该页面布局不应该改变使用它。

I need to create a PDF Report using iTextSharp. I have an excel sample,which i need to create an exact replica of it in PDF format and use it in that report.The page layout shouldn't be altered.

我怎么使用C#???去实现它。

How am i going to achieve it using c#???

在此先感谢...

推荐答案

在一般你应该坚持在你的问题中提到的意见办公室的方法。使用iTextSharp的转换是一个巨大的工作量,因为你必须通过Excel文档翻译大小,页面区域,标题,线条等并以某种方式让他们成iTextSharp的预计基于PDF的对象。我创建了一个工具,做这样的事情工作(因为它需要正常的打印之外的特殊功能),它花了很长的时间,它甚至不接近被功能齐全。

In general you should probably stick to the Office methods mentioned in your question comments. Using iTextSharp to convert is a huge amount of work because you have to translate sizes, page areas, headers, lines, etc. from the Excel doc and somehow get them into the PDF based objects that iTextSharp expects. I created a tool to do such a thing for work (because it required special functionality outside of normal "printing"), it took a very long time and it doesn't even come close to being fully featured.

这篇关于使用iTextSharp的一个Excel文档创建PDF报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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