VB crystal report datasource connection
-
Hi, When I try the following I get an error.... crReport.DataSourceConnections(servername, database, True) "Property access must assign to the property or use it's value" I am trying to assign a database to my crystal report. The reason being I have a test database and a live database. Any ideas where I am going wrong or what I should do?
-
Hi, When I try the following I get an error.... crReport.DataSourceConnections(servername, database, True) "Property access must assign to the property or use it's value" I am trying to assign a database to my crystal report. The reason being I have a test database and a live database. Any ideas where I am going wrong or what I should do?
I have no idea what you're doing, but
DataSourceConnections
is a read-only property that returns a collection ofIConnectionInfo
objects. You cannot assign annything to that property and you definitely can't call it as if it was a method, like your code is doing. I don't use CrystalReports, but perhaps you're looking to do something like:crReport.DataSourceConnections.Add(...)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak