Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I encrypt word doc with my method.
I need to when double click on word document decrypt it and open it.I dont use encrypt command of office.
Posted

1 solution

in this link[^] you will get information about how you can launch your application with specific information.

After your application get launched decrypt the file and create a temporary file and then open that file using office application.

Keep checking your temporary file whether the file is as any change since the last update. Everytime user save that specific file you will get new saving time. after you received new saving time encrypt your file and store.

Also keep checking file lock issue whether the temp file is locked or not. if the file is released delete the temporary document file.
 
Share this answer
 
Comments
khayambehroozy 16-Nov-12 10:08am    
Hi dear Mohibur Rashid
I use this solution and help me ,but i think can do it with API programing directly,and want to do solution for it

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