Reports fails when SQL database connection string is wrong

Stimulsoft Reports.NET discussion
Post Reply
bergamot
Posts: 1
Joined: Fri Jul 07, 2006 7:15 am
Location: Russia

Reports fails when SQL database connection string is wrong

Post by bergamot »

I encapsulate al queries inside report. Queries are designed using test machine. And work fine.
On a client network I substitute connectonstring at runtime:
StiReport report = new StiReport();
report.Load(template);
report.Dictionary.Databases.Clear();
StiSqlDatabase sqldb =new StiSqlDatabase("roadreports", connectionString);
report.Dictionary.Databases.Add(sqldb);
report.Compile();
report[paramName] = Param;
report.Render(true);
report.Show();

The report is not opened. Error message [RegData] Object is not set to a reference
Now the question: WHY isn't it working?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports fails when SQL database connection string is wrong

Post by Vital »

I don't see in your code calling of RegData method, but error message contain [RegData].
You provide all code? May be RegData exists in scripts of report?

Please send your report to Image for examination.

Thank you.
Post Reply