コード例 #1
0
        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);
        }
コード例 #2
0
 public ActionResult ExportTo([Bind] PivotGridExportDemoOptions options)
 {
     return(PivotGridDemoHelper.ExportTypes[options.ExportType].Method(PivotGridDemoHelper.GetPivotGridExportSettings(options), NorthwindDataProvider.GetCustomerReports()));
 }
コード例 #3
0
 public ActionResult Export()
 {
     Session["ExportOptions"] = new PivotGridExportDemoOptions();
     return(DemoView("Export", NorthwindDataProvider.GetCustomerReports()));
 }