SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "xls files (*.xls)|*.xls|All files (*.*)|*.*";
if (saveFileDialog1.ShowDialog(this) == DialogResult.OK) {
DevExpress.XtraPrinting.XlsExportOptions op = new DevExpress.XtraPrinting.XlsExportOptions();
op.ShowGridLines = true;
this.gvSaleOrder.ExportToXls(saveFileDialog1.FileName, op);
}
网友评论