I'm trying to get a report exported to multiple sheets. I know I can do this by hand when exporting en check the checkbox. But I want to do this automaticly.
I tried using the following code:
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report() {
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
#endregion StiReport Designer generated code - do not modify
StiSettings.Load();
StiSettings.Set("StiExcelExportSetupForm", "ExportEachPageToSheet", true);
StiSettings.Save();
}
}
Thanks!