Change 'Duplicate Processing' for data export (e.g. CSV)

Stimulsoft Reports.WEB discussion
Post Reply
keris
Posts: 22
Joined: Fri Oct 04, 2013 10:14 am

Change 'Duplicate Processing' for data export (e.g. CSV)

Post by keris »

Hi *,

is there any chance to change 'Duplicate Processing' property for data Export during runtime ?
That property is normally set to 'Merge based on Tag', but for data exports we want to set 'None' to always have complete filled lines.
Eventually via an according export event handler ...

Thanx in advance
Peter
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Change 'Duplicate Processing' for data export (e.g. CSV)

Post by HighAley »

Hello, Peter.
keris wrote:is there any chance to change 'Duplicate Processing' property for data Export during runtime ?
That property is normally set to 'Merge based on Tag', but for data exports we want to set 'None' to always have complete filled lines.
Eventually via an according export event handler ...
The rendered report is exported as is. So if you need to make any changes in it you should render this report again and then export a new report.

Thank you.
keris
Posts: 22
Joined: Fri Oct 04, 2013 10:14 am

Re: Change 'Duplicate Processing' for data export (e.g. CSV)

Post by keris »

OK, but where I can hook my code to do it ?
Is there an On_Export event I can subscribe ...

Thanx
Peter

Edit:
That topic is related to StiWebViewer and I want to use the predefined export UI provided by StiWebViewer.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Change 'Duplicate Processing' for data export (e.g. CSV)

Post by HighAley »

Hello, Peter.
keris wrote:OK, but where I can hook my code to do it ?
Is there an On_Export event I can subscribe ...
That topic is related to StiWebViewer and I want to use the predefined export UI provided by StiWebViewer.
You could use next code to handle export event:

Code: Select all

<cc1:StiWebViewer ID="StiWebViewer1" runat="server"  onreportexport="StiWebViewer1_ReportExport" />

Code: Select all

    protected void StiWebViewer1_ReportExport(object sender, StiExportDataEventArgs e)
    {
        // e.Report.
        // e.Settings.
    }
Thank you.
Post Reply