[OT] printing from IE

  • Thread starter Thread starter Abhishek Srivastava
  • Start date Start date
A

Abhishek Srivastava

Hello All,

This is very offtopic. It is related to printing a document from IE.
nothing to do with .net. I am desperate to find an answer to this but
didn't receive any reply anywhere so I have to try this trusted
newsgroup. Please pardon.

I have created a web based application which creates some word
documents. I need to allow the user to print a document without allowing
the user to be able to save the document as a soft copy on his/her disc.

So when the user clicks on my print button, the document is downloaded
on clients machine... sent to his default printer for printing and then
removed from clients machine.

Only one print copy is allowed. So no printer pop ups.

How can I do this, I am open to any suggestion... vbscript, activeX, ...
even java applet.

I remember seeing this functionality when I gave my MCP exam. on
clearing it ... the results are straight printed .. there are no popups
or a chance to create local copy. but that was a desktop appl this is
browser.

Please do help. I will be very gratefull for your response. Sorry again
for OT post.

regards,
Abhishek.
 
This isnt possible using the web environment because printing in asp.net
relies on the print functionality of the host process. there are ways to
work around this but it involves using a print object (available in the owc
toolpack if i remember correctly). it's not a straight forward process
either.

as another alternative, you can use the server side office object to fire
the print functionality once you feed it the required files. you would have
to figure out how to feed it the files and surpress the print dialog
function. doable but tedious.
 
Abhishek said:
Hello All,

This is very offtopic. It is related to printing a document from IE.
nothing to do with .net. I am desperate to find an answer to this but
didn't receive any reply anywhere so I have to try this trusted
newsgroup. Please pardon.

I have created a web based application which creates some word
documents. I need to allow the user to print a document without allowing
the user to be able to save the document as a soft copy on his/her disc.

So when the user clicks on my print button, the document is downloaded
on clients machine... sent to his default printer for printing and then
removed from clients machine.

Only one print copy is allowed. So no printer pop ups.

How can I do this, I am open to any suggestion... vbscript, activeX, ...
even java applet.

I remember seeing this functionality when I gave my MCP exam. on
clearing it ... the results are straight printed .. there are no popups
or a chance to create local copy. but that was a desktop appl this is
browser.

Please do help. I will be very gratefull for your response. Sorry again
for OT post.

regards,
Abhishek.

I think the functionality you describe is very similar to the one
available in the MCP online web site. Once you logon to the online site,
there is a button "Print Transcript" which prints your transcript
directly to the printer with water mark and all that. I remember it is
an activeX control being used.

Also, take a look at this page:
http://www.meadroid.com/scriptx/docs/printdoc.htm?static

HTH,
Arun G
 
Back
Top