public void ExportToXLS(string defaultFilename, string title, string filter) { UiUtility.ClearSelection(this._exportView); //this.saveFileDialog.CheckFileExists = true; this.saveFileDialog.FileName = defaultFilename; this.saveFileDialog.Title = title; this.saveFileDialog.Filter = filter; DialogResult result = this.saveFileDialog.ShowDialog(); if (result != DialogResult.Cancel) { if (this.waitDialog == null) { this.waitDialog = new WaitDialogForm("Starting Export...", "Please waiting to Export Data"); } string filename = this.saveFileDialog.FileName; if (filename != "") { this.ExportToEx(filename, "XLS"); if (this.waitDialog != null) { this.waitDialog.SetCaption("Export Finished"); } this.OpenFile(filename); } } }
public GridExportController(BaseView exportView, string[] cols) { UiUtility.ClearSelection(exportView); this._exportView = exportView; this._columnsNoExp = cols; this.saveFileDialog = new SaveFileDialog(); }
private void BindingPrintedTimes() { try { if (this._DT_PRINTED_TIME != null) { this.lblPrintCount.Text = string.Format("{0:#,##0}", this._DT_PRINTED_TIME.Rows.Count); this.grdPrintCard.DataSource = this._DT_PRINTED_TIME; UiUtility.ClearSelection(this.grdPrintCard.MainView); } } catch (Exception ex) { XtraMessageBox.Show(this, ex.Message, "Error BindingRouteActual", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }
public void ExportToPDF(string defaultFilename, string title, string filter) { UiUtility.ClearSelection(this._exportView); //this.saveFileDialog.CheckFileExists = true; this.saveFileDialog.FileName = defaultFilename; this.saveFileDialog.Title = title; this.saveFileDialog.Filter = filter; DialogResult result = this.saveFileDialog.ShowDialog(); if (result != DialogResult.Cancel) { string filename = this.saveFileDialog.FileName; if (filename != "") { this.ExportToEx(filename, "PDF"); this.OpenFile(filename); } } }
public GridExportController(BaseView exportView) { UiUtility.ClearSelection(exportView); this._exportView = exportView; this.saveFileDialog = new SaveFileDialog(); }