Telerik Forums
Reporting Forum
4 answers
91 views

Hi, 

 System Set UP : VS 2010 (I know, I know out of my control here), Silverlight 4 with Telerik Reports Upgrade Wizard to Q2 2012.

 

 I have been tasked with upgrading the reports in my project to the latest version. I have done this by using the Wizard which was pretty close to perfect but needed me to make a few changes to get it functional.

 

As part of the reports the existing software passes a load of parameters to the reports by using the event  

  public void BeginRender(RenderBeginEventArgs args)

 

I have debugged this and seen all of the properties being populated nicely. The problem occurs when actually in the report and trying to access some of the report parameters. All of the values are null and I cannot work out why?

 

I have a semi work around -: 

        void TNAnalysisReport_ItemDataBinding(object sender, EventArgs e)
        {           
            _aCollectionOfParameters = (sender as Telerik.Reporting.Processing.Report).Parameters;            
        }      

However this does not work when populating subreports.... I really need a fix as to why the parameter values are being populated but not passed? Is there anything I can check to see why?

Any pointers would be most appreciated.

 

Stef
Telerik team
 answered on 21 Aug 2015
1 answer
164 views

Hello, 

I have created a report which contains a Telerik.Reporting.Table object. In the designer, I set the data source of this Table object to an SQLDataSource object. At runtime, I want to retrieve some details about this data source, such as the ConnectionString or the SelectCommand used in the data source, however, when I look at the Table object in code at runtime, the data source is coming in as {Table1} instead of as an SQLDataSource, and the {Table1} data source has none of the details which I need. 

I have referred to the code at this URL: Changing the connection string dynamically

which seems to imply that the Table data source can come in as an SQLDataSource  (see the section near the end commented as "Covers all data items". However when I run this code to attempt to set  the connection string for a Table, it doesn't work because the data source isn't SQLDataSource at runtime. Has something changed since this example was posted? 

Thank you very much! 
Keith

 

Keith
Top achievements
Rank 1
 answered on 20 Aug 2015
1 answer
64 views

Hi Everyone,

I have a master report and two subreports. Initially, the master report and one subreport will be displayed.  Upon clicking a textbox("ShowDetails") on the first subreport, I need to display the second subreport and hide the first subreport.  How can I make it work please?  TIA!

Ivan Hristov
Telerik team
 answered on 20 Aug 2015
1 answer
996 views

Hi, Could you advise if it is possible to repeat column group headers on each page. I can get the table header to repeat on each page by setting 'ColumnHeadersPrintOnEveryPage' but this just gives me a merged cell above all the column group headers.

Thanks

Stef
Telerik team
 answered on 20 Aug 2015
1 answer
54 views

Hi,

 I have a report which has 6 tables. The data source for all the 6 tables are same. But every time each table is executing the the data object is hit and 

its making the execution slow. Is there any way that for all tables the data object(data fetching) should be done once and for every table the data object should not 

hit back or re execute. Please Help

Ellis
Top achievements
Rank 1
 answered on 19 Aug 2015
3 answers
133 views
I'm trying to pass in some business objects to an ObjectDataSource that inherit from DynamicObject. I want to be able to use properties that aren't concretely defined at compile time in the reports using the Fields.<Field name> syntax. I keep getting an error saying that these fields are available with in the context. Any suggestions?
Peter
Telerik team
 answered on 19 Aug 2015
2 answers
130 views

When I try to export to PDF (or any other format) in Chrome using the Q3 2014 reports it sends me to a link like this:

http://goodwillemployees.mo.trainup.com/api/reportresolver/clients/153811-20d9/instances/153812-3829/documents/153816-e04f?response-content-disposition=attachment

And I get the error shown in the attached image. However, I can copy/paste this link into an IE browser and it will work perfectly.

I'm not really even sure how to further debug this problem.

 

 

Brandon
Top achievements
Rank 1
 answered on 18 Aug 2015
3 answers
126 views

We have an issue regarding report that they are not working in  firefox. They are working good with chrome, but there is some problem with . 

I have searched about it on Google. But no help.

Nasko
Telerik team
 answered on 18 Aug 2015
2 answers
129 views

Hello

I have a masterreport containing a subreport i need to bind to a quoteobject.



My masterreports datasource are set via an overloaded contructor like:

        public masterreport(string P1, string P2)
        {
            InitializeComponent();

            //set masterreport datasource  (Works fine)

            Quote q = new Quote(​P1, ​P2);
            this.DataSource = q;

            //load subreportcontrol   (doesent work!)

            this.subReport1.ReportSource = new BackEnd.Reports.mysubreport(q);

        }

 

  my subreports overloaded constructor looks like :

        public subreport(Quote ​q)
        {
            this.DataSource = ​q.cfgs;  //cfgs is List<quotelines>    
        }



The masterreport is loaded into a reportviewer using :

 this.ReportViewer1.ReportSource = new BackEnd.Reports.masterreport("param1","param2");



Result is ok regarding the masterreport, where as the subreport doesent load.
The subreport works fine if I bind a datasource in the designer.

Should the above not work for binding the subreport, or have i missed something?


any inputs are welcome

Regards  
MArk


Mark
Top achievements
Rank 1
 answered on 18 Aug 2015
2 answers
592 views

Hallo!

I have two calculated Fields in an Q2 2015 Report.This Fields work well in the ​Preview Mode of your Stand-alone-designer.

However, when databound via code i get this error: "The expression contains object 'xxx' that is not defined in the current context".

Omitting both fields creates the report OK.

I am using the Fields like this:

[= "Name: " + Fields.​salutation + " " + Fields.​name]

where "Fields.salutation" would be a calculated field.

Is that not possible? Or am I doing something wrong?

Thanks for your Support!

 

IT AE
Top achievements
Rank 1
 answered on 18 Aug 2015
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?