public virtual void HandleCommand(PrintingSystemCommand command, object[] args, IPrintControl control, ref bool handled) { if (!CanHandleCommand(command, control)) { return; } handled = true; XtraForm1 exportOptionsForm = new XtraForm1(); if (exportOptionsForm.ShowDialog() == DialogResult.OK) { if (exportOptionsForm.ExportToDiffrentSheets) { SeparateSheetsExportHelper.Export("XtraReport5.xls", exportOptionsForm.ExportOptions); } else { control.PrintingSystem.ExportToXls("XtraReport5.xls", exportOptionsForm.ExportOptions); } } if (File.Exists("XtraReport5.xls")) { Process.Start("XtraReport5.xls"); } }
private void simpleButton1_Click(object sender, EventArgs e) { using (XtraForm1 f = new XtraForm1(list)) { f.BindingContext = this.BindingContext; if (f.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { CurrencyManager cm = (CurrencyManager)this.BindingContext[list]; cm.EndCurrentEdit(); } } }
public CustomFormPainter(XtraForm1 owner, DevExpress.LookAndFeel.UserLookAndFeel provider, HorzAlignment captionAlignment) : base(owner, provider) { CaptionAlignment = captionAlignment; }