Word 2007 not Working after Encryption and then Decrypt

A

Anil Saran

When you try to open a Microsoft Office Word 2007 document after encrypt and
decrypt, we open the document with following error message:

Error Message
----------------
The Office Open XML file file_name cannot be opened because there are
problems with the contents.

Details
Content might corrupt
-----------------------------------------------------------------------------
But if i save the Word 2007 document as "Word 97-2003 Document" it work fine.

My Work Environment
-----------------------

VS.2008 with SP1
Office 2007 Professional Plus edition

Encryption Algorithm Used
----------------------------
I am using The .NET Framework provides the following classes that implement
private-key encryption algorithms:

DESCryptoServiceProvider (DES algorithm)
RC2CryptoServiceProvider (RC2 algorithm)
RijndaelManaged (Rijndael algorithm)
TrippleDESCryptoServiceProvider (TrippleDES algorithm)

Any help will be appreciated.

Thanks in advance
Anil Saran
 
T

Tony Jollans

I'm not sure I can help, but can you say exactly step by step what it is you
are doing.

You encrypt a Word 2007 format document (and save it) - are you overriding
the default at all, and if so, how?

You decrypt it - does that mean you open it, or try to open it, or does it
mean you open it and remove the encryption and save it again, or what?

When you say it works fine as a Word 97-2003 format document, again what do
you mean? Are you saving the same document, and, if so, before or after the
2007-style encryption? And, if you are encrypting it in this format, are you
using the default algorithm, or overriding it?

What relevance does VS and/or .NET have? Are you using the Word UI, or are
you doing this from code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top