I am using VB6 with Crystal reports 8.5. I have a single viewer on a form and within my VB code I have multiple instantiations of reports. Eg at the start of my code I have:
Dim svcClass as new rptClass ' Crystal rpt with class info
Dim svcEquip as new rptEquip ' Crystal rpt with equip info
Depending on what report I select from the menu my viewer (crvService) uses a different report source.
ie. For first menu - crvService.reportsource = svcClass
and then next menu - crvService.reportsource = svcEquip
Everything works separately but when I put it altogether I get a "method 'reportsource' of object failed" error.
Has anyone any ideas - seems like I need to reset that data source or something
Dim svcClass as new rptClass ' Crystal rpt with class info
Dim svcEquip as new rptEquip ' Crystal rpt with equip info
Depending on what report I select from the menu my viewer (crvService) uses a different report source.
ie. For first menu - crvService.reportsource = svcClass
and then next menu - crvService.reportsource = svcEquip
Everything works separately but when I put it altogether I get a "method 'reportsource' of object failed" error.
Has anyone any ideas - seems like I need to reset that data source or something