Printing a document from the WEB server

S

Shawn

I have an application that allows users to download multiple documents
stored on the web server. I have now been asked if it is possible to send
the documents directly from the web server and to the printer instead of the
users having to download the documents first and then manually send them to
the printer one by one. Is this possible and if so could anyone point me in
the right direction?

Thanks,
Shawn
 
P

Phillip Ian

Assuming your users have javascript enabled, simply adding:

onload="javascript: window.print();"

to the <body> tag of your html page should do the trick.
 
S

Shawn

Thanks, but that is not what I'm looking for. In order to do that the user
will have to open a window containing the document first. I want the
document to be printed directly from where it is located without going
through the user.

Shawn
 
P

Phillip Ian

I must have misunderstood. Are they downloading these documents from a
win form application?

If that's the case, you could embed a hidden web browser in it, load
the page up in that, then print it.
 
B

Bruce Barker

if the printer is connected to the webserver yes. if the printer is known
only to the users machine, you will have to write an active/x control, and
get the users to trust and intall it.

-- bruce (sqlwork.com)
 
S

Shawn

Thanks Bruce,
The printer is not connected to the WEB server, but it is on the same
network. Will that do or do I still have to write an actice X control?

Shawn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top