Page 1 of 1

StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Wed May 04, 2016 1:51 pm
by marcelola
Hi Support.

How can I change PDF Export Editable Property in version 2016.1.10.0 using StiWebViewer?

My Dev Enviroment is : VS 2013 Professional, Win7 x64 .NetFramework 4.0 and Stimulsoft 2016.1.10.0 version

So, I try this code below to configure export pdf and Not Work when I select save to pdf in StiWebViewer in Aspx Page:

In Page Load :

Code: Select all

StiWebViewer1.ExportReport += new StiExportReportEventHandler(StiWebViewer1_ExportReport);
and Delegate:

Code: Select all

public void StiWebViewer1_ExportReport(object sender, StiExportReportEventArgs e)
    {
        if (e.Settings is StiPdfExportSettings)
        {
            StiPdfExportSettings pdfSettings = e.Settings as StiPdfExportSettings;
            pdfSettings.UserAccessPrivileges = StiUserAccessPrivileges.None;
            pdfSettings.ImageQuality = 85;
            pdfSettings.ImageResolution = 100;
            pdfSettings.ImageCompressionMethod = StiPdfImageCompressionMethod.Jpeg;
            pdfSettings.Compressed = true;
        }
    }    
Tks

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Thu May 05, 2016 11:04 am
by HighAley
Hello.

Please, set the AllowEditable export setting to StiPdfAllowEditable.Yes.

Thank you.

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Thu May 05, 2016 1:12 pm
by marcelola
Hi, I set as you said but did not work, below is my code with your request set, but not work.
PdfExport popup remains with the initial configurations unchanged

Code: Select all

public void StiWebViewer1_ExportReport(object sender, StiExportReportEventArgs e)
    {
        if (e.Settings is StiPdfExportSettings)
        {
            StiPdfExportSettings pdfSettings = e.Settings as StiPdfExportSettings;
            pdfSettings.AllowEditable = StiPdfAllowEditable.Yes;
            pdfSettings.UserAccessPrivileges = StiUserAccessPrivileges.None;
            pdfSettings.ImageQuality = 50;
            pdfSettings.ImageResolution = 75;
            pdfSettings.ImageCompressionMethod = StiPdfImageCompressionMethod.Jpeg;
            pdfSettings.Compressed = true;
        }
    }

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Fri May 06, 2016 11:41 am
by HighAley
Hello.

Then we need to see a sample that reproduces the issue.
Please, write also a step-by-step instruction how to reproduce the issue.

Thank you.

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Fri May 06, 2016 12:33 pm
by marcelola
Hi,
HighAley.

So, for your request I attach zip file with aspx file, code and imagem runtime executing for your easy verification of problem.

I waiting your response and tks.

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Mon May 09, 2016 7:21 am
by Alex K.
Hello,

Thank you for the sample project. We need some additional time for check the issue.
We will let you know about the result.

Thank you.

Re: StiWebViewer ExportReport Not Work in version 2016.1.10

Posted: Wed May 11, 2016 7:06 am
by Alex K.
Hello,

We check your code. All settings work correctly.

The AllowEditable property does not work due that set the following option:

Code: Select all

pdfSettings.UserAccessPrivileges = StiUserAccessPrivileges.None;
Also, if needed set the default values for the export dialog window, you should use the StiWebViewer1.DefaultExportSettings:
For example:

Code: Select all

StiWebViewer1.DefaultExportSettings.ExportToPdf.AllowEditable = StiPdfAllowEditable.Yes;
Thank you.