用于基于 Web 打印 .NET W2 表单的工具
我正在编写一个打印 W2 表单的 .NET Web 项目,但我不确定如何完成打印。我不确定是否必须先创建 PDF,还是可以使用 Microsoft Reporting Services 来完成此操作(数据库是 SQL Server)。我已经浏览了 Reporting Services 的一些示例,但还没有看到像 W2 这样的简单表单之类的东西,它只有一行详细信息并且不是基于列的。
我想我已经将范围缩小到使用 iTextSharp 创建 PDF 或 Reporting Services。我听说 Reporting Services 也可以创建 PDF,但是它是否使用了一些神奇的技术,可以让您直接通过 Web 进行打印而不需要 PDF?
只是寻找朝正确方向迈出的一步。
我发现我可以使用 QuickPDF 和 iTextSharp 创建 PDF,但是有人有使用 Reporting Services 的经验吗?最终我还将创建其他报告。 PDF 是上网的方式还是有更好的解决方案?
I'm writing a .NET web project that prints W2 forms, but I'm not sure how to accomplish the printing. I'm unsure if I have to first create a PDF or can I use Microsoft Reporting Services to accomplish this (the database is SQL Server). I've went through some examples of Reporting Services, but have yet to see anything like a simple a form like a W2, which only has one row of detail and isn't column based.
I think I've narrowed it down to either using iTextSharp to create a PDF or Reporting Services. I hear Reporting Services can create PDFs as well, but is there some magical technology it uses that allows you to print directly over the web without PDF?
Just looking for a step in the right direction.
I see I can use QuickPDF as well as iTextSharp to create a PDF, but does anyone have any experience with Reporting Services? Eventually I am going to create other reports as well. Is PDF the way to go on the web or is there a better solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是相关 iTextSharp 问题。
首先创建空白 W2 表单填空。为此,我们使用 QuickPDF 。
QuickPDF 的过程是加载空白 pdf,然后简单地找到每个文本框的位置,然后填充:
Here is a Related iTextSharp Question.
Create the blank W2 form first then fill in the blanks. We use QuickPDF for this.
The process with QuickPDF is to load the blank pdf then simply locate each textbox's position, then populate with: