生成一个 pdf 文件 asp.net(ajax) c#

发布于 2024-10-04 07:47:50 字数 246 浏览 0 评论 0原文

我有一个网页,用户必须在其中输入许多详细信息。

我想获取用户输入的记录并生成 pdf 文件,并在浏览器中预览它。

我还想将pdf保存到数据库中。

谁能帮助我理解这个过程应该如何开始?我的意思是我应该如何进行?

我正在使用 Visual Studio 2008 和 mysql。我的系统上安装了 adobe reader。我还需要什么?

我可以获得对我有帮助的教程或代码示例吗?

谢谢

I have a web page in which user has to enter many details.

I want to fetch the records that are being entered by the user and generate a pdf file, and also preview it in a browser.

I also want to save the pdf into the database.

Can anyone help me to understand how this process should start?? I mean how should I proceed?

I am using Visual Studio 2008 and mysql. I have adobe reader installed on my system. What else do I need?

Can I get the tutorials or code samples which will help me.

thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柳絮泡泡 2024-10-11 07:47:50

Adobe Reader 顾名思义,是一个阅读器应用程序,不会帮助生成 PDF。我建议您看看 iTextSharp

Adobe Reader is just what it says, a Reader application, and will not help with generating a PDF. I recommend you to have a look at iTextSharp

诗酒趁年少 2024-10-11 07:47:50

您需要使用第三方库来生成 pdf,例如 Report.netITextSharp

我在浏览器预览中看到的问题是,我不知道有什么好的方法。如果您只想向他们展示 PDF 中的数据,那么只需将其显示在网页上就足够简单了。问题在于预览实际的 PDF。这将要求用户安装某种 PDF 阅读器,并且还要求他们的浏览器自动打开 PDF 并且不尝试保存它。它还存在用户完成预览后如何“返回”您的网站的问题。

You'll need a third party library for the pdf generation, such as Report.net or ITextSharp.

The problem I see with browser preview, is that I don't know of a good way of doing it. If you just want to show them the data that goes in to the PDF, then just displaying that on a web page is easy enough. The problem is previewing the actual PDF. That will require the user to have some sort of PDF reader installed, and it will also require that their browser opens the PDF automatically and doesn't try to save it instead. It also has the problem of how the user will "get back" to your website once they're done with the previewing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文