예제 #1
0
        protected void TreeGridControlExporting_ServerPdfExporting(object sender, Syncfusion.JavaScript.Web.TreeGridEventArgs e)
        {
            PdfExport exp = new PdfExport();
            TreeGridExportSettings settings = new TreeGridExportSettings();

            settings.Theme = ExportTheme.FlatLime;
            exp.Export(this.TreeGridControlExporting.Model, (IEnumerable)this.TreeGridControlExporting.DataSource, settings, "Export");
        }
예제 #2
0
        protected void TreeGridControlExporting_ServerExcelExporting(object sender, Syncfusion.JavaScript.Web.TreeGridEventArgs e)
        {
            ExcelExport            exp      = new ExcelExport();
            TreeGridExportSettings settings = new TreeGridExportSettings();

            settings.Theme = ExportTheme.FlatLime;
            exp.Export(this.TreeGridControlExporting.Model, (IEnumerable)this.TreeGridControlExporting.DataSource, "Export.xlsx", ExcelVersion.Excel2010, new TreeGridExportSettings()
            {
                Theme = ExportTheme.BootstrapTheme
            });
        }
예제 #3
0
        protected void TreeGridControlExporting_ServerExcelExporting(object sender, Syncfusion.JavaScript.Web.TreeGridEventArgs e)
        {
            ExcelExport exp      = new ExcelExport();
            IWorkbook   workbook = exp.Export(this.TreeGridControlExporting.Model, (IEnumerable)this.TreeGridControlExporting.DataSource, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, true, "Planning Phase");

            workbook = exp.Export(this.TreeGridControlDesign.Model, (IEnumerable)this.TreeGridControlDesign.DataSource, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, workbook, true, "Design Phase");
            exp.Export(this.TreeGridControlImplementation.Model, (IEnumerable)this.TreeGridControlImplementation.DataSource, "ExcelExport.xlsx", ExcelVersion.Excel2010, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, workbook, false, "Implementation Phase");
        }
예제 #4
0
        protected void TreeGridControlExporting_ServerPdfExporting(object sender, Syncfusion.JavaScript.Web.TreeGridEventArgs e)
        {
            PdfExport   exp      = new PdfExport();
            PdfDocument document = exp.Export(this.TreeGridControlExporting.Model, (IEnumerable)this.TreeGridControlExporting.DataSource, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, false, "Planning Phase");

            document = exp.Export(this.TreeGridControlDesign.Model, (IEnumerable)this.TreeGridControlDesign.DataSource, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, "Export", document, false, "Design Phase");
            exp.Export(this.TreeGridControlImplementation.Model, (IEnumerable)this.TreeGridControlImplementation.DataSource, new TreeGridExportSettings()
            {
                Theme = ExportTheme.FlatLime
            }, "Export", document, true, "Implementation Phase");
        }