vb.net - Loading a report with Sub reports with Same RecordSelectionFormula -
im trying load crystal report file reporta.rpt
2 subreports a-1.rpt
, a-2.rpt
.
crystalreportviewer1.refreshreport() rptdocument1.load(system.appdomain.currentdomain.basedirectory & "reporta.rpt") rptdocument1.recordselectionformula = "{tbl_pv.pv_num}= 'pv2015-09-004'" rptdocument2.load(system.appdomain.currentdomain.basedirectory & "a-1.rpt") rptdocument2.recordselectionformula = "{tbl_pv.pv_num}= 'pv2015-09-004'" rptdocument.load(system.appdomain.currentdomain.basedirectory & "a-2.rpt") rptdocument.recordselectionformula = "{tbl_pv.pv_num}= 'pv2015-09-004'" crystalreportviewer1.reportsource = rptdocument
im loading 2 subreports 2 separate reportdocument
. loading main report file rerporta
crystalreportviewer1
im getting wrong records database. im new working subreports.
Comments
Post a Comment