开发者

asp.net pdf renderer

I want to ask you how to render a pdf in asp.net using c#. so my web ca开发者_高级运维n show a pdf.


You can use Aspose.PDF or iText (there is a free version).

You can read about the licensing for iText for more information on the comment provided below.


One way is to generate latex from your application and then convert latex into pdf:

http://www.emphess.net/2010/11/09/create-high-quality-pdfs-with-razor-view-engine-and-latex

The nice thing about doing it this way is that you can write your views just like all your other views, except you use latex instead of html.


You can use the ReportViewer component (in "Local Processing Mode", so you don't need the SQL Server Reporting Services) to show a Report created in Visual Studio in a web page.

If you want the report to output directly as a PDF (instead of being shown in the ReportViewer control), you can use the technique outlined in this article to render the report on the server and then send the PDF stream to the web client:

  • How to render client report definition files (.rdlc) directly to the Response stream without preview

The advantage of this solution is that you don't need to use any third-party libraries.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜