Page 1 of 1

rendering says that there is no datasource

Posted: Fri Aug 29, 2008 4:01 am
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.

rendering says that there is no datasource

Posted: Fri Aug 29, 2008 4:57 am
by Vital
Hello,

Please try following code:

Code: Select all

report.Dictionary.Synchronize();
report.Render(true);
Thank you.

rendering says that there is no datasource

Posted: Fri Aug 29, 2008 7:37 am
by zreptil
Hi Vital,

this works perfectly. Thank you :biggrin: