Welcome to WebmasterWorld Guest from 54.145.95.149

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Vista Printing

No CUPS so now what?

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

Junior Member

10+ Year Member

joined:Sept 2, 2004
posts:187
votes: 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

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

Junior Member

10+ Year Member

joined:July 1, 2005
posts:112
votes: 0


have you considered using javascript?
8:48 pm on June 21, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:July 1, 2005
posts:112
votes: 0


it would be someting like this -

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

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

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


PHP has printer functions [us.php.net]; not sure if they work for Vista or not, though.
10:30 pm on June 21, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 2, 2004
posts:187
votes: 0


Javascript would work on the client, I am trying to print on the server and to multiple printers
1:32 am on June 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


HeadBut, have you taken a look at the functions I linked to above? they control the printer server-side.
1:58 am on June 22, 2007 (gmt 0)

Senior Member from MY 

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

joined:Apr 1, 2003
posts:4847
votes: 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 June 23, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 2, 2004
posts:187
votes: 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.