rendering says that there is no datasource

Stimulsoft Reports.NET discussion
Post Reply
zreptil
Posts: 18
Joined: Tue Aug 19, 2008 1:17 am

rendering says that there is no datasource

Post by zreptil »

Hi there,

i have another problem. When i load a report and call

report.Design();

everything works fine. Even if i call

report.Render(true);

afterwards. But if i only call report.Render(true) without calling report.Design() prior to it, i get an exception that tells me that the datasources are not available. What is going wrong? Does the designer initiate something i should do before calling the render-method?

i place my data in the report using report.RegData("BusinessData",data) and everything works fine within the designer.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

rendering says that there is no datasource

Post by Vital »

Hello,

Please try following code:

Code: Select all

report.Dictionary.Synchronize();
report.Render(true);
Thank you.
zreptil
Posts: 18
Joined: Tue Aug 19, 2008 1:17 am

rendering says that there is no datasource

Post by zreptil »

Hi Vital,

this works perfectly. Thank you :biggrin:
Post Reply