473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

"Transparently" printing a word document

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.

May 17 '06 #1
9 3435
> 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
May 17 '06 #2
"ewolfman" <ew******@yahoo.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
Any ideas (a different solution or a solution to the security issue) ?


Maybe a PDF?
May 17 '06 #3
Have similar needs,

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

Thanks again,

SA

"ewolfman" <ew******@yahoo.com> wrote in message
news:11*********************@i40g2000cwc.googlegro 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.

May 17 '06 #4
Thanks for your reply.

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

May 18 '06 #5
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.

May 18 '06 #6
Thanks for your reply.

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

May 18 '06 #7
"ewolfman" <ew******@yahoo.com> wrote in message
news:11**********************@i39g2000cwa.googlegr 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
May 18 '06 #8
Is this ActiveX Control something that I can get from some place or you
wrote yourself.

Thank you for your reply

SA
"ewolfman" <ew******@yahoo.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Thanks for your reply.

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

May 18 '06 #9
I wrote it myself...

May 18 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Scott Chapman | last post by:
Hi! I'd like a "file" on the Linux box to actually be the input and output of a Python script. Anything written to the file would be sent to a database and anything read from the file would...
7
by: google12 | last post by:
hi, May anyone help me? I need a lib which support .jpeg file with RGBA mode. PIL seems to support RGB and CMYK mode only... Thanks for your help.
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
14
by: mirnazim | last post by:
Hi, There are great Python Web Application Framework. But most of them are meant for content oriented web apps. Is there something that can ease the development of application that are not...
0
by: Iker Arizmendi | last post by:
Hello all. Is there a convenient scheme within a C extension to add methods to a type in such a way as to allow me to transparently add a "proxy" around them? For example: typedef PyObject*...
3
by: Arthur Connor | last post by:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML? <A...
145
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two...
31
by: Yeah | last post by:
Is it absolutely necessary to include "http://" in an A HREF hyperlink? Would it be wise to remove this from one's Links page, just to save code?
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.