This is a migrated thread and some comments may be shown as answers.

Reports being damaged when being saved.

4 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pedro
Top achievements
Rank 1
Pedro asked on 21 Jan 2011, 05:32 PM
Hi,
I was using Reporting Q3 2009 on VS 2008 and everything was working fine, then I did an upgrade to vs 2010 and each time I open a report and I change anything and then save it, all the report parameters are lost, I also tested upgrading to reporting q1 2010, then to reporting  q2 2010 and finally to reporting q3 2010 with the same results(all in VS 2010), any ideas of what could be happening?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Jan 2011, 10:19 AM
Hi Pedro,

How do you add the report parameters to your report - are you using the Report Designer? When you say that all the report parameters are lost, are they missing from the report or their settings are reset?
If you are using a Web Site project, please follow our best practices and add the reports in a separate class library that is referenced in the web site.

All the best,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Pedro
Top achievements
Rank 1
answered on 24 Jan 2011, 08:26 PM
I added the parameters via report designer.
Lets said that I open a report and I just want to add a new label or move the position of some existing element, after I do that and save the report, when I run the report again, when I am setting the parameter's value in code an exception is thrown(something about parameter does no exists) so when I go back to the report designer, the parameters are not there, if I save a copy of the report files before changing a thing and I compare that against the files that were saved after the small change I can see that the code in the designer.cs file does no have any parameter, all this code is missing:
       Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter2 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter3 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter4 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter5 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter6 = new Telerik.Reporting.ReportParameter();
     ....
            Telerik.Reporting.ReportParameter reportParameter10 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter11 = new Telerik.Reporting.ReportParameter();
And any code that refers to any of those ReportParameters.

I just discovered that it seems like the reports were created with a very old version of telerik(not sure which ine) and were never upgraded until now.

The reports work fine but I just cannot modify them.
0
Steve
Telerik team
answered on 25 Jan 2011, 11:15 AM
Hi Pedro,

We were not able to reproduce such behavior in our local tests when we did an upgrade from Q3 2009 to Q3 2010 (as per your original post). Since we have not been contacted with such a problem so far, we would appreciate if you send us a sample project/report that we can open on our end and try to reproduce the problem.

Regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Pedro
Top achievements
Rank 1
answered on 25 Jan 2011, 05:08 PM
Hi,
Let me try it, it will be some kind of hard since this is happening in a solution that has a ton of projects with a lot of dependencies and I am not sure if this will happens with new reports.

Pedro.
Tags
General Discussions
Asked by
Pedro
Top achievements
Rank 1
Answers by
Steve
Telerik team
Pedro
Top achievements
Rank 1
Share this question
or