Export options

Stimulsoft Reports.NET discussion
Post Reply
Christopher Lloyd
Posts: 23
Joined: Wed Apr 13, 2011 7:37 am
Location: UK

Export options

Post 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
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Export options

Post by Ivan »

Hello,

Which version and build of Stimulsoft Reports do you use?

Thank you.
Christopher Lloyd
Posts: 23
Joined: Wed Apr 13, 2011 7:37 am
Location: UK

Export options

Post by Christopher Lloyd »

Hi Ivan,

Stimulsoft Reports.Web version 2010.3.

Chris L
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Export options

Post 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.
Post Reply