I have a report with subreport, and it has command based database table, I am getting this error messagebox with below code while viewing the report:
foreach (CrystalDecisions.CrystalReports.Engine.Table table in ReportDocument.Database.Tables) { TableLogOnInfo tableLogOnInfo = table.LogOnInfo; tableLogOnInfo.ConnectionInfo = ConnectionInfo; table.ApplyLogOnInfo(tableLogOnInfo); string location = "DBO" + "." + table.Location; table.Location = location; }
if i comment the below code, i am not getting the error messagebox. But i need to add the below code to get the commandtext from subreport else i wont be able to get the commandtext from subreport.
string location = "DBO" + "." + table.Location; table.Location = location;
Requirement
how do i fix this error message box without commenting the above two line
Thanks,
Samson