/// <summary> /// Function to print partyaddress book /// </summary> public void Print() { try { if (dvgPartyAddressBook.RowCount > 0) { DataSet ds = new DataSet(); CompanySP spCompany = new CompanySP(); frmReport reportobj = new frmReport(); AccountLedgerSP spAccountLedger = new AccountLedgerSP(); DataTable dtblCompany = spCompany.CompanyViewDataTable(1); DataTable dtbl = spAccountLedger.PartyAddressBookPrint(cmbAccountGroup.Text, txtMobile.Text, txtPhone.Text, txtEmail.Text, txtLedgerName.Text); ds.Tables.Add(dtblCompany); ds.Tables.Add(dtbl); reportobj.MdiParent = formMDI.MDIObj; reportobj.PartyAddressBookPrint(ds); } } catch (Exception ex) { MessageBox.Show("PAB:3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }