homepage Welcome to WebmasterWorld Guest from 54.211.219.20
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

10+ Year Member



 
Msg#: 3375012 posted 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

5+ Year Member



 
Msg#: 3375012 posted 8:40 pm on Jun 21, 2007 (gmt 0)

have you considered using javascript?

mattclayb

5+ Year Member



 
Msg#: 3375012 posted 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

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3375012 posted 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

10+ Year Member



 
Msg#: 3375012 posted 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

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3375012 posted 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

WebmasterWorld Senior Member vincevincevince us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3375012 posted 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

10+ Year Member



 
Msg#: 3375012 posted 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