public void btnExport2_OnClick(object sender, EventArgs e) { string FileName = GridExport.LocalisedFileName("/Reporting/PeriodicReport.aspx", "lblPageTitle", ResourceManager.CurrentCultureName); string SP = ""; Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport.ExportType ET = Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport.ExportType.Word; if (ExportTypes.SelectedValue.Equals("CSV")) { SP = "prcGridExport_PeriodicCSV"; ET = Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport.ExportType.CSV; GridExport.ExportDataSet(SP, UserContext.UserData.OrgID.ToString(), "", "ReportTitle", ResourceManager.CurrentCultureName, ET, FileName); } if (ExportTypes.SelectedValue.Equals("PDF")) { SP = "prcGridExport_PeriodicRS"; ET = Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport.ExportType.PDF; GridExport.ExportDataSetNew(SP, UserContext.UserData.OrgID.ToString(), UserContext.UserID.ToString(), "ReportTitle", ResourceManager.CurrentCultureName, ET, FileName, FileName, "/Reporting/PeriodicReport.aspx", "lblPageTitle", "0"); } if (ExportTypes.SelectedValue.Equals("XLS")) { SP = "prcGridExport_PeriodicRS"; ET = Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport.ExportType.Excel; GridExport.ExportDataSetNew(SP, UserContext.UserData.OrgID.ToString(), UserContext.UserID.ToString(), "ReportTitle", ResourceManager.CurrentCultureName, ET, FileName, FileName, "/Reporting/PeriodicReport.aspx", "lblPageTitle", "1"); } //Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport DSE = new Bdw.Application.Salt.Web.General.UserControls.EmergingControls.DataSetExport(); }
public virtual void Export(ExportType exportType) { var customExportImplControl = GetCustomExportImplementorControl(); if (customExportImplControl != null) { customExportImplControl.Export(exportType); } else { var printableControl = GetPrintableControl(); if (printableControl != null) { GridExport.ExportGrid(printableControl, exportType); } } }
/// <summary> /// Saves the grid to a PDF stream. /// </summary> /// <param name="stream">Stream where the file is to be saved.</param> /// <param name="options"><see cref="PdfExportOptions"/> class with parameters /// that customize the PDF output.</param> public void SavePdf(Stream stream, PdfExportOptions options) { GridExport.SavePdf(this, stream, options); }
//-------------------------------------------------------------------- //-------------------------------------------------------------------- //-------------------------------------------------------------------- //--------------------------------------------------------------------------- //-------------------------------------------------------------------- //-------------------------------------------------------------------- #if false // TODO: PDF /// <summary> /// Saves the grid to a PDF stream. /// </summary> /// <param name="stream">Stream where the file is to be saved.</param> public void SavePdf(Stream stream) { GridExport.SavePdf(this, stream); }
public override void Export(ExportType exportType) { GridExport.ExportGrid(_gridView.GridControl, exportType); }
public override void Export(ExportType exportType) { GridExport.ExportComponent(_treeList, exportType); }