我在哪里可以找到一个好的.NET PDF库?

时间:2022-08-03 15:05:26

We're webifying a winforms app with a mix of active reports and crystal reports. All will somehow be converted to PDF. There are so many tools out there. Anyone have experience with/recommendations for tools that we can use?

我们正在通过混合活动报告和水晶报告来网络化winforms应用程序。所有都将以某种方式转换为PDF。那里有很多工具。任何人都有我们可以使用的工具的经验/建议吗?

SQL Reports are one possibility, but I'd like to explore other options instead of just taking what initially seems to be the easy way.

SQL Reports是一种可能性,但我想探索其他选项,而不仅仅是采取最初看似简单的方法。

10 个解决方案

#1


Have you taken a look at iTextSharp?

你看过iTextSharp了吗?

http://itextsharp.sourceforge.net/

#2


I have used http://www.websupergoo.com/abcpdf-1.htm and it works really well for me. You can add images and everything. I am using it where I take XML and XSLT as a template, pass in the transform (the XSLT converts to HTML) and the PDF generator will generate my page properly.

我使用过http://www.websupergoo.com/abcpdf-1.htm,它对我来说效果很好。您可以添加图像和所有内容。我正在使用它,我将XML和XSLT作为模板,传递转换(XSLT转换为HTML),PDF生成器将正确生成我的页面。

Yes, the component has a cost, but I find it worth it some times to pay a small cost then spending hours and hours trying to get something else to work.

是的,该组件有成本,但我发现花一些时间来支付一小笔费用然后花费数小时和数小时试图让其他东西工作是值得的。

#4


I’m not sure if this is what you are looking for, but Crystal reports can export the reports directly to PDF so you can generate the report on the server directly in PDF format and return that PDF to the user.

我不确定这是否是您要查找的内容,但Crystal报表可以将报表直接导出为PDF,以便您可以直接以PDF格式在服务器上生成报表并将该PDF返回给用户。

If what you are looking for is a tool that allows you to generate PDF files directly then a good option is, like some colleagues has commented, iTextSharp. With iTextSharp you can generate PDF documents programmatically from scratch or from XML files.

如果你正在寻找的是一个允许你直接生成PDF文件的工具,那么一个好的选择就像一些同事评论的那样,iTextSharp。使用iTextSharp,您可以从头开始或从XML文件以编程方式生成PDF文档。

Some useful links:
iTextSharp on Sourceforge
ITextSharp section on iT3XT.com

一些有用的链接:iT3XT.com上的Sourceforge ITextSharp部分的iTextSharp

#5


I've had good experiences with PDFsharp. It's fairly low level and provides a familiar way to draw text, images, etc. on a document. Here's some sample code.

我对PDFsharp有很好的体验。它的级别相当低,并且提供了一种熟悉的方法来在文档上绘制文本,图像等。这是一些示例代码。

It's free to use for both personal & commercial projects.

它可以免费用于个人和商业项目。

#6


I'm not sure if you're looking for a component to create PDF files or trying to migrate your current reports formats to an ASP.NET site where the data can be downloaded as a PDF file. For the former I'd recommend iTextSharp. For the latter I'd recommend Devexpress XtraReports. Note that XtraReports supports exporting to PDF format out of the box.

我不确定您是否正在寻找创建PDF文件的组件或尝试将当前报告格式迁移到可以将数据下载为PDF文件的ASP.NET站点。对于前者,我推荐iTextSharp。对于后者,我推荐Devexpress XtraReports。请注意,XtraReports支持导出为PDF格式的开箱即用。

http://www.devexpress.com/Products/NET/Reporting/

#7


I have a little experience with iText for Java which seems to a well-accepted solution; there's a .NET version called iTextSharp

我对iText for Java有一点经验,这似乎是一个广为接受的解决方案;这是一个名为iTextSharp的.NET版本

#8


if all you need to is to convert a report to PDF the VisualStudio Report Generator will do that for you out of the box. Otherwise I second iTextSharp.

如果你需要的只是将报告转换为PDF,VisualStudio报告生成器将为您提供开箱即用的功能。否则我第二个iTextSharp。

#9


Doxygen is good for pretty much anything. I use it for all my .NET projects.

Doxygen几乎适合任何事情。我将它用于我所有的.NET项目。

#10


I've used Expert PDF Converter which lets me create a PDF from the HTML. I basically render an aspx page and send the output to the component which turns it into a pdf. It's nice in that I can print a WYSIYG experience for the user. Its not perfect but for $500 its a good value.

我使用了Expert PDF Converter,它允许我从HTML创建PDF。我基本上渲染一个aspx页面并将输出发送到组件,将其转换为pdf。这很好,因为我可以为用户打印所见即所得体验。它并不完美,但价值500美元。

#1


Have you taken a look at iTextSharp?

你看过iTextSharp了吗?

http://itextsharp.sourceforge.net/

#2


I have used http://www.websupergoo.com/abcpdf-1.htm and it works really well for me. You can add images and everything. I am using it where I take XML and XSLT as a template, pass in the transform (the XSLT converts to HTML) and the PDF generator will generate my page properly.

我使用过http://www.websupergoo.com/abcpdf-1.htm,它对我来说效果很好。您可以添加图像和所有内容。我正在使用它,我将XML和XSLT作为模板,传递转换(XSLT转换为HTML),PDF生成器将正确生成我的页面。

Yes, the component has a cost, but I find it worth it some times to pay a small cost then spending hours and hours trying to get something else to work.

是的,该组件有成本,但我发现花一些时间来支付一小笔费用然后花费数小时和数小时试图让其他东西工作是值得的。

#3


#4


I’m not sure if this is what you are looking for, but Crystal reports can export the reports directly to PDF so you can generate the report on the server directly in PDF format and return that PDF to the user.

我不确定这是否是您要查找的内容,但Crystal报表可以将报表直接导出为PDF,以便您可以直接以PDF格式在服务器上生成报表并将该PDF返回给用户。

If what you are looking for is a tool that allows you to generate PDF files directly then a good option is, like some colleagues has commented, iTextSharp. With iTextSharp you can generate PDF documents programmatically from scratch or from XML files.

如果你正在寻找的是一个允许你直接生成PDF文件的工具,那么一个好的选择就像一些同事评论的那样,iTextSharp。使用iTextSharp,您可以从头开始或从XML文件以编程方式生成PDF文档。

Some useful links:
iTextSharp on Sourceforge
ITextSharp section on iT3XT.com

一些有用的链接:iT3XT.com上的Sourceforge ITextSharp部分的iTextSharp

#5


I've had good experiences with PDFsharp. It's fairly low level and provides a familiar way to draw text, images, etc. on a document. Here's some sample code.

我对PDFsharp有很好的体验。它的级别相当低,并且提供了一种熟悉的方法来在文档上绘制文本,图像等。这是一些示例代码。

It's free to use for both personal & commercial projects.

它可以免费用于个人和商业项目。

#6


I'm not sure if you're looking for a component to create PDF files or trying to migrate your current reports formats to an ASP.NET site where the data can be downloaded as a PDF file. For the former I'd recommend iTextSharp. For the latter I'd recommend Devexpress XtraReports. Note that XtraReports supports exporting to PDF format out of the box.

我不确定您是否正在寻找创建PDF文件的组件或尝试将当前报告格式迁移到可以将数据下载为PDF文件的ASP.NET站点。对于前者,我推荐iTextSharp。对于后者,我推荐Devexpress XtraReports。请注意,XtraReports支持导出为PDF格式的开箱即用。

http://www.devexpress.com/Products/NET/Reporting/

#7


I have a little experience with iText for Java which seems to a well-accepted solution; there's a .NET version called iTextSharp

我对iText for Java有一点经验,这似乎是一个广为接受的解决方案;这是一个名为iTextSharp的.NET版本

#8


if all you need to is to convert a report to PDF the VisualStudio Report Generator will do that for you out of the box. Otherwise I second iTextSharp.

如果你需要的只是将报告转换为PDF,VisualStudio报告生成器将为您提供开箱即用的功能。否则我第二个iTextSharp。

#9


Doxygen is good for pretty much anything. I use it for all my .NET projects.

Doxygen几乎适合任何事情。我将它用于我所有的.NET项目。

#10


I've used Expert PDF Converter which lets me create a PDF from the HTML. I basically render an aspx page and send the output to the component which turns it into a pdf. It's nice in that I can print a WYSIYG experience for the user. Its not perfect but for $500 its a good value.

我使用了Expert PDF Converter,它允许我从HTML创建PDF。我基本上渲染一个aspx页面并将输出发送到组件,将其转换为pdf。这很好,因为我可以为用户打印所见即所得体验。它并不完美,但价值500美元。