I have developed an application in Visual Basic 6 that use Access2000 Reports to print the data.
It works very well in my development environment, but when I try to distribute my application to my customer in a CD, when trying to print a report, occurs an error "Impossible to create ActiveX object".
The code I use is...
Set apl = New Access.Application
apl.OpenCurrentDatabase App.Path & "\Facturas2000.mdb"
apl.DoCmd.RunMacro "m_imprimir_factura"
The macro m_imprimir_factura is a macro in the Access2000 database that prints the report.
I have included in the distribution package the msacc9.olb file and it is registered in the customer's computer.
All this happens under Windows NT4 environment.
Thanks for your interest
It works very well in my development environment, but when I try to distribute my application to my customer in a CD, when trying to print a report, occurs an error "Impossible to create ActiveX object".
The code I use is...
Set apl = New Access.Application
apl.OpenCurrentDatabase App.Path & "\Facturas2000.mdb"
apl.DoCmd.RunMacro "m_imprimir_factura"
The macro m_imprimir_factura is a macro in the Access2000 database that prints the report.
I have included in the distribution package the msacc9.olb file and it is registered in the customer's computer.
All this happens under Windows NT4 environment.
Thanks for your interest