Auto print

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Auto print

Postby scranmer » 26. February 2005 14:45

I have create a program and store printer info. I would like to "shell out" to windows and auto print a file directly to a set printer.

Situation is XAMPP using PHP, Apache on Win2K or WinXp PC with several machines accessing the PC over a P2P network. I was thinking of having the printer/queue name being stored within the system setup, "shelling out" to windows creating/identifying word docs and sending the to the printer queue.

I do this elsewhere in *nix with direct lp -p.... command

Any ideas please.

TA

Si.
scranmer
 
Posts: 26
Joined: 20. May 2004 14:59
Location: UK, Southport

Postby scranmer » 04. March 2005 08:18

I have found out about the ShellExecuteEx command to print a file

OR

print /d:\\printserver\sharenamedrive:\path\filename from here

But not sure how or which is the best way to use it within PHP/Apache. Anyone else used these?

TA

Simon.
scranmer
 
Posts: 26
Joined: 20. May 2004 14:59
Location: UK, Southport


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 105 guests