Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
PDF Permissions/Encryption
posted

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.