Welcome to WebmasterWorld Guest from 54.227.214.52

Forum Moderators: coopster & jatar k

Vista Printing

No CUPS so now what?

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

10+ Year Member



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 Jun 21, 2007 (gmt 0)

5+ Year Member



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

5+ Year Member



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)

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



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)

10+ Year Member



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)

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



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)

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



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)

10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month