Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Php printing on windows

Status
Not open for further replies.

cartiste

Programmer
Jan 29, 2007
1
GB
Hi all,

Set up: Using the latest wampserver on windows, with php 5.28 and php_printer module installed and active.

I've managed to get USB printers in windows to print without problems using php print, but for some reason the serial port printer just doesn't work.

I've tried removing all printers other than the serial printer and setting it to the default printer and using the "()" option to use default printer and it still doesn't work.

The printer works without problem from other programs and the windows test print function. All the settings on the printer work from the windows printer properties dialog box (as in they make a difference to the printer).

Is it possible that windows serial printers are not recognised by php print in the same way as say USB ones?

Any ideas on what the issue could be are gratefully looked forward to! Thanks in advance.
 
i can't see why it would be the case that serial printers are not recognised.

have you set up anything in php.ini that might prevent the sockets from being created?

are you certain you are getting the printer name correctly? if you set the device as the windows default printer and use printer_open() without an argument, do you get better results?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top