I have been trying to make this work with my customer's NAV 2009 R2, but so far with little luck.
I have managed to find out that the first error (Ungültiger Dateiname) referred to the fact that I had to map F:\ to somewhere, since the ocx writes a log file always to this location.
However, then the problems started. I seem to be unable to encrypt anything at all.
I have been using functions GnuPg.SetGnuPGFilePath for correct pgp.exe path, but i am unsure if this should contain both the program name and path, or just path.
Probably it needs both, since if I use function GnuPg.enumPublicKeys -function, i receive error if there is pgp.exe, but no error if there is only path.
Error is: Der Index der Liste überschreitet das Maximum (5)
Also, function GnuPg.encryptFile(KeyID, fromfile, tofile) does not seem to work. It writes log file to mapped F:\ disk, but that doesnt help me much.
Anyone know the right syntax for KeyID? Should it be e-mail address or the key I have in my GNU Privacy Assistant key manager?
Unfortunately it is very long time when I last used Delphi or Pascal, so it is very hard for me to read the source file, and I do not have Delphi compiler, so I cannot do modifications to the OCX either.
Please, anyone?
Sorry for delay with answering.
I never found fix for this and decided to use pgp.exe with shell automation object. It worked actually nicely when I got the catch of all strange problems.
One which caused most troubles was the fact that if you use shell automation object, you cannot use URI paths (\\server\sharedfolder), you first have to map the shared folder, then use mapped drive letter (!).
Unfortunately I have lately changed job and dont have access to the code anymore. Othervise I would have shared it here, since it really is something worth sharing in my opinion.
Comments
I have been trying to make this work with my customer's NAV 2009 R2, but so far with little luck.
I have managed to find out that the first error (Ungültiger Dateiname) referred to the fact that I had to map F:\ to somewhere, since the ocx writes a log file always to this location.
However, then the problems started. I seem to be unable to encrypt anything at all.
I have been using functions GnuPg.SetGnuPGFilePath for correct pgp.exe path, but i am unsure if this should contain both the program name and path, or just path.
Probably it needs both, since if I use function GnuPg.enumPublicKeys -function, i receive error if there is pgp.exe, but no error if there is only path.
Error is: Der Index der Liste überschreitet das Maximum (5)
Also, function GnuPg.encryptFile(KeyID, fromfile, tofile) does not seem to work. It writes log file to mapped F:\ disk, but that doesnt help me much.
Anyone know the right syntax for KeyID? Should it be e-mail address or the key I have in my GNU Privacy Assistant key manager?
Unfortunately it is very long time when I last used Delphi or Pascal, so it is very hard for me to read the source file, and I do not have Delphi compiler, so I cannot do modifications to the OCX either.
Please, anyone?
--Matrix
https://navurpo.blogspot.com/?view=classic
Sorry for delay with answering.
I never found fix for this and decided to use pgp.exe with shell automation object. It worked actually nicely when I got the catch of all strange problems.
One which caused most troubles was the fact that if you use shell automation object, you cannot use URI paths (\\server\sharedfolder), you first have to map the shared folder, then use mapped drive letter (!).
Unfortunately I have lately changed job and dont have access to the code anymore. Othervise I would have shared it here, since it really is something worth sharing in my opinion.
--Matrix
https://navurpo.blogspot.com/?view=classic