views:

42

answers:

1

Hi All

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>"

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

+3  A: 

iTextSharp - Introducing Tables

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.

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

amexn