Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I encrypt word doc with my method.
I need to that when double click on word document decrypt it and open it.I dont use encrypt command of office.
Posted
Comments
Nelek 11-Nov-12 8:26am    
And where are you having problems?
[no name] 11-Nov-12 22:00pm    
what is your method?

1 solution

The you'll have to associate the Word file extensions with your application. This will have the effect of opening your decryption application where you can then decrypt the file, but then your application will be responsible for opening Word with the correct command line parameters to open the file.

Your decryption code will also have to determine if the file is indeed encrypted because you'll be responsible for opening ALL Word documents, whether or not they are encrypted.
 
Share this answer
 
Comments
khayambehroozy 11-Nov-12 10:40am    
I need have plugin in word,and do it with plugin,but plugin have open method and occurs after open file with word,I need it before open file with word,
I think can do it with API,but I cant do it,if any one can help me
Dave Kreskowiak 11-Nov-12 11:37am    
How did you do the encryption? If this was a plugin, under which event was your code called??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900