Telerik Forums
Reporting Forum
4 answers
323 views
Seeing this error. I fall back to an earlier version of my report which doesn't do this, make  a few changes, and I see this again. Any help would be appreciated.

An error has occurred while rendering the report: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Reporting.Processing.Table.ForEachCell(Action`1 action)
   at Telerik.Reporting.Processing.Table.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.VisualElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureChildItems(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.ReportSectionBase.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.VisualElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.Group.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.VisualElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.Report.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
   at Telerik.Reporting.Processing.VisualElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureOverride(IMeasureContext context, SizeRF availableSize)
   at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, IMeasureContext context)
   at Telerik.Reporting.XamlRendering.SilverlightReportInteractive.MeasureReportCore(Report report, IMeasureContext measureContext)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
Steven
Top achievements
Rank 1
 answered on 02 Feb 2013
1 answer
179 views
Hi,

i am very new to telerik reporting, i need to develop a bar chart, based on the data from datatable.
my datatable design.

 

DataTable

 

 

dtStudent = new DataTable();

 

dtStudent.Columns.Add(

 

"Date", typeof(DateTime));

 

dtStudent.Columns.Add(

 

"Group", typeof(string));

 

dtStudent.Columns.Add(

 

"Score", typeof(double));


//data

 

dtStudent.Rows.Add(

 

"2013-01-12", "Drawing", 25.0);

 

dtStudent.Rows.Add(

 

"2013-01-12", "Music", 10.0);

 

 

 

//date2

 

 

 

 

 

dtStudent.Rows.Add(

 

"2013-01-13", "Drawing", 30.0);

 

dtStudent.Rows.Add(

 

"2013-01-13", "Music", 11.0);

 

 

 

//date3

 

 

 

 

 

dtStudent.Rows.Add(

 

"2013-01-14", "Drawing", 28.0);

 

dtStudent.Rows.Add(

 

"2013-01-11", "Dance", 40.0);

i need to display the chart as match as the attachment file Bar chart.

if any one help me with example will be very helpfull for me.

Thanks in advance..

 

Elian
Telerik team
 answered on 01 Feb 2013
1 answer
94 views
Hello,
i tried to set the report's datasource,going on ReportSource property,a dialog appeared where i choosed the type
and chose from "Select a report Type" and a blank window in dialog mode appear,and i couldn't do anything from that point on.i had to close Visual Studio.
I attached a screenshot.Is this an error,or some wrong operation on reports?!

P.S:i used the Reporting Q3 2012
Stef
Telerik team
 answered on 01 Feb 2013
4 answers
350 views
Hi all,
I have a hierarchical data structure and I am using a sub report with object data source to recursively iterate over it. 
In all the leaf nodes I have a value that I would like to aggregate in a bottom up manner and display the running aggregate at each level.  Aggregating the values outside of the report is not an option at the moment.

Basically, it boils down to passing values from all the subreports up to the parent report.
I am still new to Telerik so some pointers / techniques/patterns would be highly appreciated 

Report should look like this in the end

(root) 12
    (A1) 3
      (B1) 1      // leaf
      (B2) 2      // leaf
   (A2)  9 
     (C1) 6
        (D1) 4
           (E1) 1 // leaf
           (E2) 3 // leaf
         (D2) 2   // leaf
    (C2) 3        // leaf
etc...

Greetings.
Stef
Telerik team
 answered on 01 Feb 2013
1 answer
171 views
I have created a report and added a table to the detail section.
I have set the sql datasource of this table at design time. The sql data source is dynamic and can return a different number of columns at run time.
I would like to be able to get (or convert) the sqldatasource into a datatable at run time so I can identify the number of columns and column names returned by the datasource and build the table dynamically.
I have managed to build a dynamic table but I cannot figure out how to convert or access the sql datasources dataset/datatable/rawdata. How do I do this? is it even possible?

Thanks in advance.
Hadib Ahmabi
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
99 views
I am using the Reporting Learning Guide pdf.  I am trying to create a new report inside VS2012 and keep running into a problem.  

When I get to the Choose Data Source page, there are no data sources present (no problem there), so I click on the "Add New Data Source..." button and the "Create New Data Source" dialog opens -- with no selections to choose from.

A screen capture is attached.

What do I do?  This is happening repeatedly.

Thanks in advance for any assistance!

Lynn
IvanY
Telerik team
 answered on 01 Feb 2013
1 answer
70 views
Hi,
I'm using a reportviewer inside a silverlight custom control.
This custom control is embedded into a lightswitch project.

In the LS screen the first column on the left contains a grid with the records I'd like to print, the second column (right) contains the custom control where the reportviewer is shown.

Everything works fine, except that when I change the record on the left column's grid, I have to manually refresh the reportviewer, using its refresh button.
I can't find a way to programmatically add a refresh method triggered to the grid_SelectionChanged event.
 
What I'm looking for is an easy way to refresh the reportviewer as I do with its button.

Any help?

Thx
Hadib Ahmabi
Top achievements
Rank 1
 answered on 01 Feb 2013
3 answers
117 views
How does the telerik resource service determine the url to use in the call to getrenderstream? Images are not appearing in my report because the getrenderstream url is including a port number, which is causing the connection to be refused. If I manually execute the same url without the port number, the image resource is loaded correctly. There is no mention of a port number anywhere in any of my web.configs, and none of the other service calls include a port number (including telerik report service calls). Is there a way I can force the resource service to not include the port?
Chavdar
Telerik team
 answered on 01 Feb 2013
1 answer
336 views
Good morning,

I'm trying to use the report viewer to display a web based report. I've already placed it on my server and was just running a couple of test inquiries with date parameters that designate what date range to display the reports, and any report > 2000 records begins to time out. I tried increasing the time out server side, and it's still giving me a problem.

My question is, is there way to prevent this issue? I am not doing a lot of sorting, filtering, or grouping. Essentially, my query is a basic Select with maybe one join in a stored procedure in SQL Server. I have used that as my data source and when I am pulling up the report the only two parameters that I give the report are a start date and end date.

The error that I am getting is always the following

[HttpException (0x80004005): Request timed out.]

Is there a way to resolve or prevent this short of just increasing the timeout to 3000 like I saw other people doing? I do not want to put too much overhead or load on the server. Another question, just to verify, Telerik does not "lock out" the records when I'm running the report viewer, correct? Since most of the reports that I have tried to run seem to take about 6 - 8 minutes to respond, I just want to ensure that I am not preventing other processes from accessing the same records.

Also, could it possibly be because of the multiple pages that the report viewer is rendering? I have it currently set to display only 22 records per page, but I forgot how to adjust that. So another question is how do I inform the report viewer that I want it to display more than 22 records per page?

Thank you in advance for your assistance.
IvanY
Telerik team
 answered on 01 Feb 2013
1 answer
42 views
I have a chart that is very near what I need. But the legend area on the right is displaying empty entries. How can I get rid of them? I have a filter setup at the chart level already. I have attached an image.
Hadib Ahmabi
Top achievements
Rank 1
 answered on 01 Feb 2013
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?