Click here to Skip to main content
11,500,576 members (74,043 online)
Rate this: bad
good
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
Comments
Nelek at 11-Nov-12 8:26am
   
And where are you having problems?
Tinier at 11-Nov-12 22:00pm
   
what is your method?

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
khayambehroozy at 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 at 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
0 Sergey Alexandrovich Kryukov 305
1 DamithSL 275
2 Maciej Los 260
3 Peter Leow 200
4 Sascha Lefèvre 110
0 Sergey Alexandrovich Kryukov 345
1 Maciej Los 290
2 DamithSL 220
3 Peter Leow 181
4 OriginalGriff 167


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2015
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