如何以Pdf格式记录Vb.Net表单中的数据? [英] How Do I Record Data From A Vb.Net Form In Pdf Format?

查看:60
本文介绍了如何以Pdf格式记录Vb.Net表单中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,基本上我正在研究这个项目,我必须提交2mrw。我创建了一个表单,用户在表单中输入了详细信息。我的目标是我将拥有这个名为Pdf格式的查看数据的按钮。然后用户决定将其保存在他想要的任何地方。请帮助请帮助我。我不知道怎么做?

So, basically i m working on this project which i have to submit 2mrw. I have created a form and the user enters details in the form. My goal is that i am going to have this button which is called View data in Pdf format. The user then decides to save it wherever he wants to. Please please please please help me. I have no clue how to do it?

推荐答案

有很多方法可以做到这一点。您可以看到谷歌 [ ^ ]问题。



您可以尝试许多第三方组件。

iTextSharp [ ^ ]

PDFSharp [ ^ ]

SharpPDF [ ^ ]



这些是我在谷歌上发现的一些。



我过去的做法是创建一个CrystalReport。您可以设计报告,然后在程序中传递数据。您可以使用Crystal Report Viewer对象打印预览或其他任何内容,但关键是您可以将报表导出为PDF。这是非常基本和有限的。导出时无法设置某些属性或在PDF上使用安全性。但是您可以以您想要的格式获得基本报告。然后你可以使用上面提到的第三方库之一(我使用过PDFsharp)来增加安全性或进行其他设置更改。



希望这会有所帮助。
There are lots and lots of ways to do this. As you can see if you google[^] the issue.

There are many third party components you could try.
iTextSharp[^]
PDFSharp[^]
SharpPDF[^]

Those are a few I found on google.

The way that I've done it in the past is to create a CrystalReport. You design the report and then in your program you can pass it data. You can use a Crystal Report Viewer object to print preview or whatever, but the key is that you can export the report into a PDF. It's very basic and limited. You can't set certain properties while exporting it or use security on the PDF. But you can get the basic report in the format you want. Then you could use one of the third party libraries mentioned above (I've used PDFsharp) to add security or make other settings changes.

Hope this helps.


VB.NET Printing Tutorials [ ^ ]


这篇关于如何以Pdf格式记录Vb.Net表单中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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