创建Asp.net PDF文件 [英] Create pdf file in Asp.net

查看:115
本文介绍了创建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

这篇关于创建Asp.net PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆