Hi
I have a pair of apps one written in VB6 and the other in VB.net. Both use the CR9 RDC rather than the built in .Net version. My app works happily on the development machine. I have an install made with InstallShield Express using all the recommended MSM modules.
On a clean virtual machine the VB6 app & reports work OK but on the .NET I have problems when running the report. The exception is InvalidActiveXStateException and the message is "Cannot invoke property set of 'ReportSource' at this time". It is triggered by the line
AxCRViewer9.ReportSource=crReport
I know that both crApplication object, the crReport object and the ActiveX CRViewer9 control were instantiated correctly as I have included message boxes showing a table name from crReport's databases collection and the ReportViewer's Application Name property.
Any ideas? Is it some interop problem or have I missed something in the install?
I have a pair of apps one written in VB6 and the other in VB.net. Both use the CR9 RDC rather than the built in .Net version. My app works happily on the development machine. I have an install made with InstallShield Express using all the recommended MSM modules.
On a clean virtual machine the VB6 app & reports work OK but on the .NET I have problems when running the report. The exception is InvalidActiveXStateException and the message is "Cannot invoke property set of 'ReportSource' at this time". It is triggered by the line
AxCRViewer9.ReportSource=crReport
I know that both crApplication object, the crReport object and the ActiveX CRViewer9 control were instantiated correctly as I have included message boxes showing a table name from crReport's databases collection and the ReportViewer's Application Name property.
Any ideas? Is it some interop problem or have I missed something in the install?