Printer_open() to print a html output
With printer_open() function in php, I am able to print the string that I
saved in $content variable, and able to print from a file.
$printer = "\\\\Pserver.php.net\\printername");
$handler= printer_open($printer)
$content="Test Content"; //string
printer_write($handler, $content);
printer_close($handler);
But have a html output that I generated from the database, and is showing
in the webpage, I need to print that directly to the printed in the same
format once the page loads, I tried a lot but I dont know what I should do
to make the printer to print directly the same HTML output once the page
loads using the printer_open().
What should I do? Please suggest a better method than this if any
Thanks
No comments:
Post a Comment