Add one overload to the SavePackedReport method that is a (string, string) like the following.
Code: Select all
void TheReport.SavePackedReport(string path, string password)
{
//Zip the output from SaveReport with a Zip File Password
//Save to file
}
void TheReport.SavePackedReport(Stream stream, string password)
{
//Zip the output from SaveReport with Zip File Password
//Output to Stream
}
This method already uses a compression routine (ZIP) to compress the output from SaveReport. Most compression methods have a passwording/encryption system. This would provide a quick dirty method of protecting report designs from distribution and seems like a pretty simply addition to the Report Engine. Plus it would come in very handy for us.