password protected report

I assumed the password on the report option will protect from viewing the report or even open it as xml.
However, I protect one test report with password, I tried to open it, the report asked my password, so far so good.
Then I opened the report with notepad, I removed the password (ReportOptions.Password="j[ij")
The password is encrypted as j[ij.
Q: where is the protection and what is the purpose ?
I need to protect or encrypt the fr3 file. How I do that

Thanks

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 6:47PM
    I don't use encryption in FR, but if I had to, I would use my own function for this. You can find lots of open source encryption functions in public libraries, I would assume the Jedi components have something.
    So, instead of simply saving your file with a report1.savetofile, I would save it to a stream (report1.SaveToStream), encrypt the stream, and then save the stream as file, with your own extension (like .XFR).
    I'm sorry but I can't give you any sample code, as I said, I don't use it, but that's the general idea, I hope it helps.
  • gpigpi
    edited 6:47PM
    nash
    Did you add frxCrypt unit in uses list of your unit?
  • Anu de DeusAnu de Deus Hampshire, UK
    edited 6:47PM
    no

Leave a Comment