创建Asp.net PDF文件

问题描述:

string s="<table>
             <tr>
                <td>Name</td>
                <td>nnnn</td>
             </tr>
             <tr>
                <td>Age</td>
                <td>dd</td>
             </tr>
             <tr>
                <td colspan='2'><img src='img.jpg'/></td>

             </tr>
          </table>"

我需要这个字符串转换为PDF file.Can人帮助我这样做?

I need to convert this string to a pdf file.Can anybody help me for doing this?

iTextSharp的 - 引入表

在.NET框架不包含PDF文件的工作任何本地方式。所以,如果你想生成或PDF文件作为您的ASP.NET Web应用程序的一部分工作,你将不得不依赖于可用的很多第三方组件之一。谷歌将帮助你找到一个适合你的预算,以及各种开源的免费组件。一*组件是iTextSharp的,这是一个公知的Java程序的一个端口,iText的

The .NET framework does not contain any native way to work with PDF files. So, if you want to generate or work with PDF files as part of your ASP.NET web application, you will have to rely on one of the many third party components that are available. Google will help you to find one that fits your budget, as well as a range of open-source free components. One of the free components is iTextSharp, which is a port of a well known Java utility, iText.

表将可能是在从ASP.NET应用程序产生的文档,如订单和发票提供结构的PDF最常用的要素之一。
本概述不是表的详尽检查,但介绍了通过iTextSharp的

Tables will probably be one of the most used elements in PDFs generated from ASP.NET applications to provide the structure for documents such as orders and invoices. This overview is not an exhaustive examination of tables, but provides an introduction to working with them through iTextSharp