View Full Version : Printing to Printer.
robojob
11-17-2006, 10:44 AM
Hi,
Can anyone tell me if it is possbile for my webserver to automatically print out a page, to a printer attached to my webserver when a form is submitted. I need to be able to do this completely server side and not rely on what printer the user has installed etc.
Thanks.
Spudhead
11-20-2006, 12:20 PM
Hmm. I'd say it's possible, but you're probably going to need some sort of additional component installing. Can I ask what it's for? There may be slightly easier alternatives - like, say, generating a PDF file on the server and emailing it to somebody? I'm guessing, BTW - I've never heard of anyone printing to the webserver's printer, but somebody might come along and tell me it's doable in 2 lines of VBScript. :o
Roelf
11-22-2006, 06:49 AM
You can invoke an instance of MSWord at the serverlevel. Then create a document on the fly, shove any text in that document and then give a print command to Word.
Some info about hows to use MS Word at the server is in this thread: http://www.codingforums.com/showthread.php?t=9873&highlight=word.application
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.