Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > "Transparently" printing a word document

Reply
Thread Tools

"Transparently" printing a word document

 
 
ewolfman
Guest
Posts: n/a
 
      05-17-2006
Hi,

I need to provide the user with the option to click something, and what
follows is:
1. Download a word document, without displaying winword.
2. Printing the document to the default printer (no print dialog should
pop).
3. Close word.

All of this must be completely "transparent" to the user, just like a
normally installed non-web application. This means that no security
warnings and messages should appear at all.

It is assured that the client has WinWord installed.

We've attempted many solutions, and have managed to perform the above
steps with the following solution:
1. An ActiveX Control is downloaded to the client (one time operation
where the user is asked to "install").
2. The ActiveX Control uses winword automation to open the file, print
it and then close it, using a direct url to the server
(word.Documents.Open "http://blabla/bla.doc").

The only problem is that the website is secured... and word is
therefore considered an anonymous user.

Any ideas (a different solution or a solution to the security issue) ?

Thanks.

 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      05-17-2006
> Hi,
>
> I need to provide the user with the option to click something, and what
> follows is:
> 1. Download a word document, without displaying winword.
> 2. Printing the document to the default printer (no print dialog should
> pop).
> 3. Close word.
>
> All of this must be completely "transparent" to the user, just like a
> normally installed non-web application. This means that no security
> warnings and messages should appear at all.
>
> It is assured that the client has WinWord installed.
>
> We've attempted many solutions, and have managed to perform the above
> steps with the following solution:
> 1. An ActiveX Control is downloaded to the client (one time operation
> where the user is asked to "install").
> 2. The ActiveX Control uses winword automation to open the file, print
> it and then close it, using a direct url to the server
> (word.Documents.Open "http://blabla/bla.doc").
>
> The only problem is that the website is secured... and word is
> therefore considered an anonymous user.
>
> Any ideas (a different solution or a solution to the security issue) ?
>
> Thanks.


As you already have an ActiveX control (which you need to bypass the
security), why not have your control download the file, store it in a
temporary file and have Word print *that* file?

Hans Kesting


 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      05-17-2006
"ewolfman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...

> Any ideas (a different solution or a solution to the security issue) ?


Maybe a PDF?


 
Reply With Quote
 
MSDN
Guest
Posts: n/a
 
      05-17-2006
Have similar needs,

Which ActiveX did you use in item 2?
Thank you if you can share this with us.

Thanks again,

SA

"ewolfman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hi,
>
> I need to provide the user with the option to click something, and what
> follows is:
> 1. Download a word document, without displaying winword.
> 2. Printing the document to the default printer (no print dialog should
> pop).
> 3. Close word.
>
> All of this must be completely "transparent" to the user, just like a
> normally installed non-web application. This means that no security
> warnings and messages should appear at all.
>
> It is assured that the client has WinWord installed.
>
> We've attempted many solutions, and have managed to perform the above
> steps with the following solution:
> 1. An ActiveX Control is downloaded to the client (one time operation
> where the user is asked to "install").
> 2. The ActiveX Control uses winword automation to open the file, print
> it and then close it, using a direct url to the server
> (word.Documents.Open "http://blabla/bla.doc").
>
> The only problem is that the website is secured... and word is
> therefore considered an anonymous user.
>
> Any ideas (a different solution or a solution to the security issue) ?
>
> Thanks.
>



 
Reply With Quote
 
ewolfman
Guest
Posts: n/a
 
      05-18-2006
Thanks for your reply.

The ActiveX Control cannot download the file because is still needs
credentials to perform a login.

 
Reply With Quote
 
ewolfman
Guest
Posts: n/a
 
      05-18-2006
Thanks for your reply.

We thought of using a PDF (actually, this was our initial assumption).

However, I don't see how a PDF can solve this issue, unless you can
assure me that there is someway were I can Response.WriteFile the PDF
file (as an inline document, so that the browser will not prompt the
user to "open" or "save" the document), print it, and then close it.

 
Reply With Quote
 
ewolfman
Guest
Posts: n/a
 
      05-18-2006
Thanks for your reply.

The ActiveX is a VB6 ActiveX Control which is embedded as an <OBJECT>
in the html page.

 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      05-18-2006
"ewolfman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...

> We thought of using a PDF (actually, this was our initial assumption).
>
> However, I don't see how a PDF can solve this issue, unless you can
> assure me that there is someway were I can Response.WriteFile the PDF
> file (as an inline document, so that the browser will not prompt the
> user to "open" or "save" the document), print it, and then close it.


http://www.google.com/search?hl=en&l...nt+Ghostscript


 
Reply With Quote
 
MSDN
Guest
Posts: n/a
 
      05-18-2006
Is this ActiveX Control something that I can get from some place or you
wrote yourself.

Thank you for your reply

SA


"ewolfman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Thanks for your reply.
>
> The ActiveX is a VB6 ActiveX Control which is embedded as an <OBJECT>
> in the html page.
>



 
Reply With Quote
 
ewolfman
Guest
Posts: n/a
 
      05-18-2006
I wrote it myself...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implement Custom Printing Logic & Enhanced Word Documents Printing sherazam Java 0 12-26-2011 03:24 PM
generating word document with header and footerwithout using word object. srk ASP .Net 0 04-25-2007 06:34 AM
generating word document with header and footerwithout using word object. srk ASP .Net 0 04-24-2007 01:59 PM
Printing Word document problem Youss33@-NOSPAM-hotmail.com ASP .Net 0 08-03-2004 10:19 AM
Modifying a Word document without using Word Automation Michael G. Schneider ASP General 5 12-16-2003 06:52 PM



Advertisments