Protected Report Template
Posted: Tue Aug 04, 2009 1:25 pm
I would like to protect a report template from being used arbitrarily. All I need is a password mechanism. This would be a simple addition to the StiReport Object like the following.
Add one overload to the SavePackedReport method that is a (string, string) like the following.
The current overload list for this function is (string) and (Stream). So the two overloads I have provided would fit here nicely.
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.
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.