homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Vista Printing
No CUPS so now what?

 7:12 pm on Jun 21, 2007 (gmt 0)

I have never been a Windows user and now I have to do some printing. I have been using this (on a Mac) with great success and I am wondering if there is something close to it on VISTA

exec("lp -d T100__STR_T_U001_ $FilePathOfFileReadyToPrint", $PrintResult)

I've looked at the print library for windows but thought I would ask before I go down that path.




 8:40 pm on Jun 21, 2007 (gmt 0)

have you considered using javascript?


 8:48 pm on Jun 21, 2007 (gmt 0)

it would be someting like this -

<form><input type=button value="print page" onClick="window.print()"></form>


 9:49 pm on Jun 21, 2007 (gmt 0)

PHP has printer functions [us.php.net]; not sure if they work for Vista or not, though.


 10:30 pm on Jun 21, 2007 (gmt 0)

Javascript would work on the client, I am trying to print on the server and to multiple printers


 1:32 am on Jun 22, 2007 (gmt 0)

HeadBut, have you taken a look at the functions I linked to above? they control the printer server-side.


 1:58 am on Jun 22, 2007 (gmt 0)

HeadBut, first, that command is a really great way of doing things (thanks)

Second - windows printing can be a real pain, however if you have a postscript compatible printer and can get your output into postscript then there are plenty of methods (including free 3rd party command line apps) to send that postscript directly there.


 7:59 pm on Jun 23, 2007 (gmt 0)

I have gotten "printer_write" to work but the thermal printer I am using is very hard to read in this print mode and "printer_set_option" doesn't seem to work for emf (emphasized) text. Also "printer_draw_text" prints at an angle, at a slight down angle making it very odd.

I'm open to any ideas.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved