Click here to Skip to main content
12,546,935 members (56,475 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
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 11-Nov-12 1:54am
Nelek 11-Nov-12 8:26am
And where are you having problems?
Tinier 11-Nov-12 22:00pm
what is your method?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161018.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100