Page 1 of 1

PDF Export Editable Property

Posted: Wed Mar 23, 2011 9:51 pm
by cozzib
Does Reports.Web support the PDF editable property. Can I set the pdf export to non editable, non printable etc... In code behind?

PDF Export Editable Property

Posted: Thu Mar 24, 2011 1:50 am
by Ivan
Hello,

Please use the ReportExport event of StiWebViewer, for example:

Code: Select all

        webViewer1.ReportExport += new Stimulsoft.Report.Web.StiExportDataEventHandler(webViewer1_ReportExport);
        
        ...
   
        void webViewer1_ReportExport(object sender, Stimulsoft.Report.Web.StiExportDataEventArgs e)
        {
            if (e.Settings is StiPdfExportSettings)
            {
                StiPdfExportSettings pdfSettings = e.Settings as StiPdfExportSettings;
                pdfSettings.UserAccessPrivileges = StiUserAccessPrivileges.None;
            }
        }
Thank you.