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