如何在不使用iTextsharp.dll的情况下将Datagridview导出为C#和VB.NET中的PDF [英] How to export datagridview to PDF in C# and VB.NET without using iTextsharp.dll

查看:68
本文介绍了如何在不使用iTextsharp.dll的情况下将Datagridview导出为C#和VB.NET中的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,

我想在不使用任何第三方应用程序或dll的情况下将DataGrid查看数据导出到C#.Net和VB.Net Windows应用程序中。







提前致谢。



我有什么尝试过:



我是编码新手,我没办法尝试。

Hello sir,
I want to export DataGrid View Data to PDF In C#.Net and VB.Net Windows application without using any third party application or dll.



Thanks in advance.

What I have tried:

I am new in coding i do not have any way to try.

推荐答案

Quote:

我是新编码



如果你是初学者,那么你不知道任务有多复杂:这就是为什么我们使用第三方插件如iTextSharp。

这是PDF文件格式规范: PDF参考 [ ^ ] - 为了编写自己的代码来生成PDF文件,你将会我需要阅读和理解整个文件。正如您可能已经注意到的那样,它在1310页面上相当大,而且技术性很强。你可能不需要所有这些 - 但是你需要了解它才能知道你不需要的部分!



这不是一个简单的工作 - 我不会毫无理由地尝试它 - 但你应该在几年内完成它(iTextSharp自1998年以来一直在开发,但作者可能没有花费他们的全部时间在它上面)。祝你好运!


If you are a beginner, then you have no idea how complicated the task is: that's why we use third party addons such as iTextSharp.
Here is the PDF file format specification: PDF reference[^] - in order to write your own code to generate PDF files, you will need to read and understand tge whole document. As you may have noticed, it's quite large at 1310 pages, and pretty technical. You won't need all of it, probably - but you need to understand it all in order to know what parts you don't need!

This isn't a simple job - I wouldn't attempt it without damn good reasons - but you should finish it in a few years (iTextSharp has been in development since 1998, but the authors probably haven't spent their whole time on it). Good luck!


这篇关于如何在不使用iTextsharp.dll的情况下将Datagridview导出为C#和VB.NET中的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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