tags:

views:

73

answers:

2

I want to print using php_printer.dll. I have no problem printing a simple text but it doesn't print HTML file and it prints the tags like :

<-h-t-m-l-> <-b-o-d-y-> test <-/-b-o-d-y-> <-/-h-t-m-l->

I don't have any choice other than using php_printer.dll .

+1  A: 

php_printer.dll does not contain any HTML rendering features, so you can't do what you are trying to do with it.

rikh
A: 

Have you tried converting the html file to a txt file then sending it to print?

UPDATE

An HTML file is a text file with a different file extension. It is this file extension that tells a web browser to perform the parsing on an HTML file that generates a web page.

Simply copying the file from filetoprint.html to filetoprint.txt, then printing the .txt version should get you what you want. PHP manual for copying files; http://php.net/manual/en/function.copy.php

MatW
no, how can I do that?
Ali Bozorgkhan