public static PivotGridSettings GetPivotGridExportSettings(PivotGridExportDemoOptions options) { PivotGridSettings exportSettings = ExportPivotGridSettings; exportSettings.SettingsExport.OptionsPrint.PrintHeadersOnEveryPage = options.PrintHeadersOnEveryPage; exportSettings.SettingsExport.OptionsPrint.PrintFilterHeaders = ConvertToDefaultBoolean(options.PrintFilterHeaders); exportSettings.SettingsExport.OptionsPrint.PrintColumnHeaders = ConvertToDefaultBoolean(options.PrintColumnHeaders); exportSettings.SettingsExport.OptionsPrint.PrintRowHeaders = ConvertToDefaultBoolean(options.PrintRowHeaders); exportSettings.SettingsExport.OptionsPrint.PrintDataHeaders = ConvertToDefaultBoolean(options.PrintDataHeaders); return(exportSettings); }
public ActionResult ExportTo([Bind] PivotGridExportDemoOptions options) { return(PivotGridDemoHelper.ExportTypes[options.ExportType].Method(PivotGridDemoHelper.GetPivotGridExportSettings(options), NorthwindDataProvider.GetCustomerReports())); }
public ActionResult Export() { Session["ExportOptions"] = new PivotGridExportDemoOptions(); return(DemoView("Export", NorthwindDataProvider.GetCustomerReports())); }