homepage Welcome to WebmasterWorld Guest from 54.196.57.4
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
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?
HeadBut




msg:3375014
 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.

TIA
Matt

 

mattclayb




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

have you considered using javascript?

mattclayb




msg:3375079
 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>

eelixduppy




msg:3375167
 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.

HeadBut




msg:3375185
 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

eelixduppy




msg:3375285
 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.

vincevincevince




msg:3375296
 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.

HeadBut




msg:3376993
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved