Page 1 of 1

Refresh report after rendering

Posted: Mon Oct 24, 2011 9:32 pm
by AlexSu10
Hi all,

I am a new user of the Stimulsoft Report .net V2.0 and there are a few questions I need to ask:

1) I compiled a dll using VB.net 2010 targeting .net framework 3.5, but the report does not let me reference it saying that the dll was built using a newer version of framework. Anyway I can solve this? If I target a .net framework version lower than 3.5, then I would not have the oledb object in my class definition.

2) The dll is suppose to alter the table structure in the database that the report refers during run-time. And I did create a new column in the report dictionary manually, but when the report runs, it does not detect the new column in the database. I need to run the report twice for the report to refer to the newly created column. Is there a way to refresh the report during run-time to detect the newly created column?

I guess that's all for now. Thanks for taking the time to help out.
Alex

Refresh report after rendering

Posted: Tue Oct 25, 2011 8:33 am
by Alex K.
Hello,
AlexSu10 wrote:1) I compiled a dll using VB.net 2010 targeting .net framework 3.5, but the report does not let me reference it saying that the dll was built using a newer version of framework. Anyway I can solve this? If I target a .net framework version lower than 3.5, then I would not have the oledb object in my class definition.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details? Also if possible, please send us a sample which reproduces the issue.
AlexSu10 wrote:2) The dll is suppose to alter the table structure in the database that the report refers during run-time. And I did create a new column in the report dictionary manually, but when the report runs, it does not detect the new column in the database. I need to run the report twice for the report to refer to the newly created column. Is there a way to refresh the report during run-time to detect the newly created column?
If we understand your issue correctly, if you load report from dll (compiled report), then you cannot modify the struture in the database, in this case you need to recompile a report.

Thank you.

Refresh report after rendering

Posted: Wed Oct 26, 2011 1:14 am
by AlexSu10
Hi Aleksey,

Thank yoou for your reply. To answer you question below:
Aleksey wrote:Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details? Also if possible, please send us a sample which reproduces the issue.
In this case I used VB.net to generate a dll. I tried to reference it into the report, But the report says that the framework version of the dll is of newer version.
Aleksey wrote:If we understand your issue correctly, if you load report from dll (compiled report), then you cannot modify the struture in the database, in this case you need to recompile a report.
I have a subroutine in the report that modifies the actual database structure. And I manually added a new column in the report dictionary, but the report does not detect the new column in the database source in the first run. Only the in the second run that the report detects the new column. If recompiling the report is what I need to do, how should I do it? Where do I place the code?

Thanks,
Alex

Refresh report after rendering

Posted: Mon Oct 31, 2011 6:45 am
by Alex K.
Hello,
AlexSu10 wrote:In this case I used VB.net to generate a dll. I tried to reference it into the report, But the report says that the framework version of the dll is of newer version.
We couldn't reproduce this bug. Could you explain your issue in more details and, if possible, send us a step-by-step guide how to reproduce the issue and sample project?
I have a subroutine in the report that modifies the actual database structure. And I manually added a new column in the report dictionary, but the report does not detect the new column in the database source in the first run. Only the in the second run that the report detects the new column. If recompiling the report is what I need to do, how should I do it? Where do I place the code?
Open report in designer and resave it as compiled report (in .dll or .cs file).


Thank you.