Hi,
I just discovered that I can set permissions in my PDF-Export of my grid, simply by using
void UltraWebGridDocumentExporter1_BeginExport(object sender, Infragistics.WebUI.UltraWebGrid.DocumentExport.DocumentExportEventArgs e) { Report report = e.Report; IPdfPreferences pdfPreferences = report.Preferences.PDF; IEncryptor encryptor = pdfPreferences.Encryptor; encryptor.Password.User = "foo"; encryptor.Password.Owner = "bar"; encryptor.Permissions.Print = false; encryptor.Permissions.Add = false; encryptor.Permissions.Copy = false; encryptor.Permissions.Modify = false;
}
Unfortunatly all I get is
Encryption has been requested for the document being published but encryption is not supported in this release.
This is a documented limitation of the Infragistics Documents engine. Refer to the following article from our online help documentation for NetAdvantage for .NET 2008 Volume 2 for more detail as to what this affects:Encryption Support Is Not Present
hmm, I was kinda afraid something like this would be the case :( any chance this is going to be supported in some reasonable periode of time?
And how about those permission-settings - are they also subject of those encryption-related restrictions? Currently I'm mostly interested in limiting a PDF to being printed :)