Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PGP, VB, EXCEL - Cannot open EXCEL file after decrypted

Status
Not open for further replies.

mingichu

MIS
Apr 12, 2002
29
US
Hi, all experts,

We use VB 6 to trigger PGP 8.0.3 to encrypt all types of files.

Now we encountered a problem: One Excel file abc.xls was conventionally encrypted to abc.pgp by our VB program. We can decrypt it manuallly with PGP 7 or PGP 8.0.3. But we can not open the decrypted Excel file with error msg as below:
"'abc.XLS' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is sored on may not be responding."

If we MANUALLY encrypted the Excel file, after we decrypted the PGP file, we have no problem to open it.

Does anyone know where the problem is and how to fix it?
Thanks!!!!!

Below are the VB codes to do the PGP Conventional encryption:
============================
vPharseStr = "xyzxyz"
PInFile= "abc.xls"
POutFile = "abc.PGP"
Call PPGPRef.ConventionalEncryptFile(PInFile, POutFile, _
TEXT_FILE, TEXT_FILE, CAST5, vPharseStr)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top