views:

60

answers:

4

Hello,

I have data stored in the database with HTML format, and I want to get the value of this html content with MyReader.getString() after getting the html code I must do the conversion to PDF Format.

You have any idea on how can I do it ? !!

A: 

You can put the whole HTML content into Word (as a HTML document) and extract it as PDF.

cevik
you can do this over COM.
cevik
Had to laugh when I read this answer :(
Vincent
How can I convert it first to Word after that to PDF format manualy with code.
dotNET
@Vincent: why?Save the entire HTML to a document.Add a Microsoft Word reference to your project and open your HTML document like this:Dim objWord As Word.ApplicationSet objWord = New Word.ApplicationobjWord.Documents.Open "<DRIVE>:\<path_to_your_file>.html", , , TrueNow you can extract this document as a PDF document. (Explained here: http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/1bbecda8-d2fc-4578-983a-1de361367f19)
cevik
A: 

Use a tool like webSuperGoo's ABCpdf, I've used it in the past and I found it quite easy to setup and use.

http://www.websupergoo.com/abcpdf-5.htm

Damien Dennehy
I don't need a `software solution`, I need to do it manualy with for example a library like the `iText` in `JAVA`.
dotNET
There isn't a built in library to do PDF conversion in .NET. I recommended ABCpdf because doesn't require an install of software on your web server - you just add the DLL to your project.
Damien Dennehy
A: 

Tall Components is a .NET library with decent VB.NET support. They have a library called WebToPDF.NET which may be what you're looking for. It's an extremely easy library API to use.

code4life
A: 

Pdfcrowd has an online API that lets you convert HTML to PDF. They have, among others, a client library for .NET. The API is pretty easy to use.