views:

186

answers:

6

Im just imagining what the things I can do to make a pdf file out of my localhost files(.php). I tried using the online conversion tools but it didnt work because they're not on the web definitely. Can you recommend me of some ways on how I can achieve my goal of converting an html table into pdf and print it using the print function in vb.net?

-I'm using vb.net as my interface for the database program I am making(mysql) utilizing php as the code to manipulate database. I've made use of vb.nets web browser to achieve this. Because I'm still a moron when it comes to php.

+1  A: 

You have tagged it as php too and in php, we find fpdf to be really good to create all sorts of layouts.

Tutorials

Scripts

Sarfraz
A: 

If you're on Linux and PHP environment, you might wanna try wkthmltopdf on http://code.google.com/p/wkhtmltopdf/

I have tried it myself and was so pleased with the results of HTML conversion to PDF.

It has a program to run from terminal and it works well with your CSS styles.

But the file is huge and you need to install X Server on your Linux.

Rezuan Asrah
A: 

Prince XML ( http://www.princexml.com/ ) does an incredible job of converting even complex CSS layouts to PDFs. (We use it in combination with TinyMCE so end-users can create PDFs, and the results look great.) The license is fairly expensive, though.

bluej100
A: 

I've used Migradoc / PDFSharp for generating .pdf files to great effect.

Jon Cage
A: 

I used in one project http://www.digitaljunkies.ca/dompdf/. There is some work with fonts and encoding, but its functional with CSS, images and etc. And today I found mpdf.bpm1.com/ but I didnt try it.

Vebloud
A: 

You can try fpdf or tcpdf. Both are open source and use PHP classes for their implementation.

Karthick