private void ExportDocument() { ExportForm.ReportType reportType; if (this._exportForm == null) { bool?configFlag = ConfigurationHelper.GetConfigFlag("UsePdfExportFilter"); this._exportForm = new ExportForm((!configFlag.GetValueOrDefault() ? false : configFlag.HasValue)); } ExportForm.ReportType?nullable = this._reportType; reportType = (nullable.HasValue ? nullable.GetValueOrDefault() : this.DetermineOpenedReportType()); var vw = new ExportViewer(this.viewer1); this._exportForm.Text = "Export Report"; this._exportForm.Show(this, new ExportViewer(this.viewer1), reportType); //ExportFormold exportForm = new ExportFormold( PageDocument); //exportForm.ShowDialog(this); }
public static Form GetRequestedForm() { Form ed = null; if (string.IsNullOrEmpty(FLScriptEditor.Settings.WorkingDir) && !string.IsNullOrEmpty(FLScriptEditor.Settings.ScriptPath)) { if (FLScriptEditor.Settings.ScriptPath.EndsWith(".flc")) { ed = new ExportViewer(FLScriptEditor.Settings.ScriptPath); } else { ed = new FLScriptEditor(FLScriptEditor.Settings.ScriptPath); } } else if (!string.IsNullOrEmpty(FLScriptEditor.Settings.ScriptPath) && !string.IsNullOrEmpty(FLScriptEditor.Settings.WorkingDir)) { if (FLScriptEditor.Settings.ScriptPath.EndsWith(".flc")) { ed = new ExportViewer(FLScriptEditor.Settings.ScriptPath); } else { ed = new FLScriptEditor(FLScriptEditor.Settings.ScriptPath, FLScriptEditor.Settings.WorkingDir); } } else { ed = new FLScriptEditor(); } return(ed); }