private void PrintRecord() { string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls"; ExportBackbound.ExportRecord(recordView, tempFile); if (System.IO.File.Exists(tempFile)) { System.Diagnostics.Process.Start(tempFile); } }
private void PrintDetail(string boundID) { string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls"; ExportBackbound.ExportDetail(detailView, boundID, tempFile); if (System.IO.File.Exists(tempFile)) { System.Diagnostics.Process.Start(tempFile); //保存 } }
private void PrintDetail() { string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls"; detailGrid.ExportToXls(tempFile); if (System.IO.File.Exists(tempFile)) { System.Diagnostics.Process.Start(tempFile); } }
private void PrintGrid(GridControl grid) { string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls"; string customer = GetCustomerNo(); string strDate = GetOrderDate(); ExportInvoice.ExportInvioceTotal(editView, customer, strDate, tempFile); if (System.IO.File.Exists(tempFile)) { System.Diagnostics.Process.Start(tempFile); } }
private void PrintGrid(GridControl grid) { string orderNo = inboundView.GetFocusedRowCellValue("ProductNo").ToString(); string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls"; if (grid == detailGrid) { ExportGridView.ExportDetail(this.detailView, tempFile); } else { ExportGridView.ExportRecord(orderNo, this.recordView, tempFile); } if (System.IO.File.Exists(tempFile)) { System.Diagnostics.Process.Start(tempFile); //保存v } }