Page 1 of 1

Export options

Posted: Wed May 25, 2011 3:50 am
by Christopher Lloyd
I am experiencing difficulties in setting default options for exports. I simply want to to set of couple of default options like excel export - data only, csv export - comma as delimiter etc but I cannot find which properties I need to set. How do I find out what forms I need to reference in my code?

I have also noticed that when a user selects current page only for an export, they still get all pages.

Again I have tried to use the email button but my users cannot click on it as it is "hidden" behind the save button.

Chris L

Export options

Posted: Wed May 25, 2011 5:06 am
by Ivan
Hello,

Which version and build of Stimulsoft Reports do you use?

Thank you.

Export options

Posted: Wed May 25, 2011 11:00 am
by Christopher Lloyd
Hi Ivan,

Stimulsoft Reports.Web version 2010.3.

Chris L

Export options

Posted: Thu May 26, 2011 5:08 am
by Vladimir
Hello,

You can use a ReportExport event of the StiWebViewer component, for example:

Code: Select all

protected void StiWebViewer1_ReportExport(object sender, StiExportDataEventArgs e)
{
    StiExportFormat format = e.Settings.GetExportFormat();
    switch (format)
    {
        case StiExportFormat.Excel:
            (e.Settings as StiExcelExportSettings).ExportDataOnly = true;
            break;

        case StiExportFormat.Csv:
            // some settings
            break;
    }
}

Thank you.