Upgrading reports to dotnet 2.0

Stimulsoft Reports.NET discussion
Post Reply
Sacha
Posts: 19
Joined: Tue Mar 27, 2007 11:21 am
Location: Montréal

Upgrading reports to dotnet 2.0

Post by Sacha »

Hi !

We are moving our code to .Net 2.0 and I'm in charge of upgrading StimulReport dlls to 2.0 as well.

I have installed SR_2007.09.24_R2005 dlls and uninstalled the .Net 1.1 version.
I have regenerated my dlls with the .Net 2.0 designer. Is there any other step I need to do to upgrade properly ?

Because now when I try to print, I get and Index out of bounds error when I try to load my report dll, only the .mrt file is still working to print.
Or maybe it is a bug ?

I'm open to suggestions to tryout more stuff and hopefully resolve that issue!

Thanks for the great support !

Sacha
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Upgrading reports to dotnet 2.0

Post by Edward »

For moving to the new version of the Stimulsoft Reports.Net (even when you move from one prerelease build to another) you have to rebuild your application with new dlls and also open in the Designer each mrt file (or programmatically if amount of dlls is too much) and save them as dll files. Without rebuilding the report's files working only of the version with same date is guarantied. And only from .Net 1.1 to .Net 2.0.

In other words, if the date of the build in .Net 1.1 differs from the version of dlls in .Net 2.0 then rebuilding is required, otherwise not.

Thank you.
Sacha
Posts: 19
Joined: Tue Mar 27, 2007 11:21 am
Location: Montréal

Upgrading reports to dotnet 2.0

Post by Sacha »

Thank you Edward for your answer, and like I mentionned in my post, I have already did those steps but when I run this line :

StiReport stiReport = StiReport.GetReportFromAssembly(sessionInfo.SummaryReportPath+".dll", true);

I receive an index out of range error. If I use :

StiReport stiReport = new StiReport();
stiReport.Load(sessionInfo.SummaryReportPath+".mrt");

I don't get that error and I dont get it in the report designer preview tab also.
So at the moment, we can still print with the 2.0 version, but it is much slower due to the use of the .mrt instead of the .dll

Is there anything else to do or test that could make that work again ?

Thanks

Sacha
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Upgrading reports to dotnet 2.0

Post by Edward »

Please send your mrt file to Image for analysis.

Thank you.
Sacha
Posts: 19
Joined: Tue Mar 27, 2007 11:21 am
Location: Montréal

Upgrading reports to dotnet 2.0

Post by Sacha »

Ok, I figured it out.

In the GAC, I had DLLs version 2007.3 (in .net 1.1) and a version 2007.2 (in .net 2.0)
I had to remove all stilmulsoft DLLs from the gac and reinstall them again, clear the solution and rebuild it again, redo report DLLs and after that it was back on track.

I'm still surprised that I had a more recent version in 1.1 then 2.0 though ....

Sacha
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Upgrading reports to dotnet 2.0

Post by Edward »

It is always difficult to say something definite when the dlls are from some different versions of Stimulsoft Reports.Net.

Thank you.
Post Reply