private void BtnOutstandingTransactions_Click(object sender, EventArgs e) { var xreport = new OutstandingTransactions(CurrentContext.LoggedInUserName); var ds = new DataSet(); ds.Tables.Add(ReceiveDoc.GetOutstandingReceives()); ds.Tables[0].TableName = "OutstandingReceives"; ds.Tables.Add(IssueDoc.GetOutstandingIssues()); ds.Tables[1].TableName = "OutstandingIssues"; ds.Tables.Add(ReceiveDoc.GetOutstandingVoidRequestGRV()); ds.Tables[2].TableName = "OutstandingGRVVoidRequest"; ds.Tables.Add(IssueDoc.GetOutstandingRequestedVoidForInvoice()); ds.Tables[3].TableName = "OutstandingInvoiceVoidRequest"; ds.Tables.Add(IssueDoc.OutstandingIssuedDeliveryNote()); ds.Tables[4].TableName = "OutstandingIssuedDeliveryNote"; ds.Tables.Add(ReceiveDoc.GetOutstandingTransfer(ReceiptType.CONSTANTS.ACCOUNT_TO_ACCOUNT_TRANSFER)); ds.Tables[5].TableName = "OutstandingAccountToAccountTransfer"; ds.Tables.Add(ReceiveDoc.GetOutstandingTransfer(ReceiptType.CONSTANTS.STORE_TO_STORE_TRANSFER)); ds.Tables[6].TableName = "OutstandingStoreToStoreTransfer"; ds.Tables.Add(ReceiveDoc.GetOutstandingReceiveDeliveryNote()); ds.Tables[7].TableName = "OutstandingReceivedDeliveryNote"; xreport.DataSource = ds; xreport.ShowPreview(); }