I spent a lot of time reading and searching this site for an answer, and it was hard to come up with a title for this. I'm using Visual Studio .NET 2008 and Crystal Reports 2008. The VB.NET Windows app loads and runs .rpt files and was upgraded from VS.NET 2003 and Crystal Reports 9. In the below code, if I don't comment out the line of code in red, I get "The table [tablename] does not exist in the document." If I do comment out this line, all reports load and run just fine.That line of code had to be there in VS.NET 2003 with Crystal 9. Can anyone shed light on this and confirm that I'm doing this right for the 2008 environment? Thanks.
' loop through all the tables and pass in the connection info
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
crTable.Location = crTable.Location.SubString(crTable.Location.LastIndexOf(".") + 1)
Next