I've an unique requirement, i'm not able to find ideal solution for
this. I'm generating a report in word format from crystal report
through asp.net code. Now, I've to set password for the word document.
I've some question regarding on this?

Leave crystal report option, Is it really possible to set password
product for a word document from asp.net with out microsoft
automation(word.dll,mso.dll)?? coz. microsoft strongly suggest that
not use micrsoft autiomation in server side.

Is there any third party tool/components to achieve this? I'm planning
to implement this through javascript in client side, is it feasible???

Thanks in advace.

Re: How to create password protected word document?? by Paul

Paul
Wed Oct 08 08:39:15 CDT 2008

On Tue, 7 Oct 2008 21:08:44 -0700 (PDT), ramarnath@gmail.com wrote:

¤ I've an unique requirement, i'm not able to find ideal solution for
¤ this. I'm generating a report in word format from crystal report
¤ through asp.net code. Now, I've to set password for the word document.
¤ I've some question regarding on this?
¤
¤ Leave crystal report option, Is it really possible to set password
¤ product for a word document from asp.net with out microsoft
¤ automation(word.dll,mso.dll)?? coz. microsoft strongly suggest that
¤ not use micrsoft autiomation in server side.
¤
¤ Is there any third party tool/components to achieve this? I'm planning
¤ to implement this through javascript in client side, is it feasible???
¤
¤ Thanks in advace.

I would post your question in microsoft.public.dotnet.framework.aspnet to see if anyone has any
ideas there.

I'm not aware of any method of setting a password for a Word document other than using automation.
In addition, the Office apps aren't designed to run in an unattended multi-threaded environment as
you mentioned.

BTW, there is password recovery software available that can easily crack a Word document password.


Paul
~~~~
Microsoft MVP (Visual Basic)