Telerik Forums
Reporting Forum
1 answer
585 views
Hi,

We are using html5 report viewer to render reports. The problem is if the browser window size is changed, how can we auto resize the report, for example the report column width to fit for the browser?

Thank you.
Stef
Telerik team
 answered on 06 Feb 2014
1 answer
177 views
When i click on the printbutton on ReportView- Telerik Reporting 2013 Q3, the adobe PDF opens automaticaly. I want to Open the print dialog Box .   Can someone help me in this issue?

The second issue is how to print report on the client Machine without open a dialog box and PDF?Thanks
Paulo
Stef
Telerik team
 answered on 06 Feb 2014
3 answers
79 views
Hello,

is there any way in Designer or SourceCode to locate GroupFooterGroup always at the end of last page over PageFooter. Currently GroupFooterGroup section is always located immediately after previous section (Detail section). For example, now report looks like (last page)
   Header
   DetailSection (Сontinuation end end)
   GroupFooterGroup
<-- empty page space
                                                     Page X
But I need the following last page:
   Header
   DetailSection (Сontinuation end end)
<-- empty page space
   GroupFooterGroup
                                                     Page X

Thanks a lot!



Stef
Telerik team
 answered on 06 Feb 2014
1 answer
179 views
Hi all,

Version: Q3 2013.

I have created a report in the designer, added some basic elements.  I created a class to create a Telerik.Reporting.Table.  I then add the table to the report's detail section.  All is looking good at this point.  All I can think of is I missed something some where.

myReport.Items["detailSection"].Items.Clear();

                Telerik.Reporting.Table subTable = myReportBuilder.GetTable();
subTable.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(subReportDefaultLocation)
, Telerik.Reporting.Drawing.Unit.Inch(currentLocation));

myReport.Items["detailSection"].Items.Add(subTable);

Telerik.Reporting.InstanceReportSource rptSource = new Telerik.Reporting.InstanceReportSource { ReportDocument = myReport };

reportViewer1.ReportSource = rptSource;

reportViewer1.RefreshReport();

In the reportviewer I get the Object reference not set to an instance of an object.

What I'm asking is:
a) How do I locate the offending piece and what changes do I need based on the information noted below
b) what does the output mean

My company will not authorize me to post the actual class, but can submit directly to Telerik support.

<Output>
The thread '<Thread Ended>' (0x33a0) has exited with code 0 (0x0).
Step into: Stepping over method without symbols 'Telerik.Reporting.InstanceReportSource.InstanceReportSource'
Step into: Stepping over method without symbols 'Telerik.Reporting.InstanceReportSource.ReportDocument.set'
Step into: Stepping over method without symbols 'Telerik.ReportViewer.WinForms.ReportViewerBase.ReportSource.set'
Step into: Stepping over method without symbols 'Telerik.ReportViewer.WinForms.ReportViewerBase.RefreshReport'
'ReportsTest.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'
Step into: Stepping over method without symbols 'System.Windows.Forms.Form.OnLoad'
Step into: Stepping over method without symbols 'System.Windows.Forms.Control.CreateControl'
Step into: Stepping over method without symbols 'System.Windows.Forms.Control.CreateControl'
Step into: Stepping over method without symbols 'System.Windows.Forms.Control.WmShowWindow'

Step into: Stepping over method without symbols 'System.Windows.Forms.Control.WndProc'
*** ReportProcessor.ProcessReport STARTED ***
Step into: Stepping over method without symbols 'System.Windows.Forms.Form.WndProc'
Step into: Stepping over method without symbols 'System.Windows.Forms.NativeWindow.DebuggableCallback'

*** ProcessReport #0 STARTED ***
Step into: Stepping over method without symbols 'System.Windows.Forms.Control.SetVisibleCore'
Step into: Stepping over method without symbols 'System.Windows.Forms.Form.SetVisibleCore'
Step into: Stepping over method without symbols 'System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner'

*** Report Processing STARTED ***

*** Table::ProcessItem STARTED ***

*** TableBuilder::AddColumns STARTED ***
*** TableBuilder::AddColumns DONE in 00:00:00.0075209 ***


*** TableBuilder::AddRows STARTED ***
*** TableBuilder::AddRows DONE in 00:00:00.0022374 ***


*** TableBuilder::AddBody STARTED ***
*** TableBuilder::AddBody DONE in 00:00:00.0043412 ***

*** Table::ProcessItem DONE in 00:00:00.0370327 ***

*** Report Processing DONE in 00:00:00.1095166 ***

*** ProcessReport #0 DONE in 00:00:00.1425153 ***

*** ReportProcessor.ProcessReport DONE in 00:00:00.1537056 ***


*** Get IMAGEInteractive Rendering Extension STARTED ***
'ReportsTest.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Telerik.Reporting.XpsRendering\v4.0_7.2.13.1016__a9d7983dfcc261be\Telerik.Reporting.XpsRendering.dll'
'ReportsTest.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Telerik.Reporting.OpenXmlRendering\v4.0_7.2.13.1016__a9d7983dfcc261be\Telerik.Reporting.OpenXmlRendering.dll'
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'Telerik.Reporting.Interfaces.ExtensionManagerException' occurred in Telerik.Reporting.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'Telerik.Reporting.Interfaces.ExtensionManagerException' occurred in Telerik.Reporting.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'Telerik.Reporting.Interfaces.ExtensionManagerException' occurred in Telerik.Reporting.dll
*** Get IMAGEInteractive Rendering Extension DONE in 00:00:00.0764216 ***


*** Measure Report STARTED ***

*** Measure Report STARTED ***

*** Measure Report STARTED ***
A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Reporting.dll
*** Measure Report DONE in 00:00:00.0162011 ***

*** Measure Report DONE in 00:00:00.0190725 ***

*** Measure Report DONE in 00:00:00.0211237 ***

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.MeasureDataItemContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.DataItem.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, IMeasureContext context)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.ImageRendering.ImageReportInteractive.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReport(Report report)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Reporting.dll
The thread 'Rendering' (0x40dc) has exited with code 0 (0x0).
Object reference not set to an instance of an object.
at Telerik.Reporting.Processing.Table.ForEachCell(Action`1 action)
at Telerik.Reporting.Processing.Table.MeasureDataItemContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.DataItem.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, IMeasureContext context)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.ImageRendering.ImageReportInteractive.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReport(Report report)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.CountPages(IList`1 reports, IRenderingContext renderingContext, Hashtable deviceInfo, ExtensionInfo extensionInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.ReportViewer.Common.ReportRenderer.Render(ReportRendererArgs args)
WinViewer> An error has occurred while rendering a 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.MeasureDataItemContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.DataItem.MeasureContent(IMeasureContext context, SizeRF availableClientSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(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.LayoutElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.Measure(IMeasureContext context, SizeRF availableSize)
at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, IMeasureContext context)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.ImageRendering.ImageReportInteractive.MeasureReportCore(Report report, IMeasureContext measureContext)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.MeasureReport(Report report)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.CountPages(IList`1 reports, IRenderingContext renderingContext, Hashtable deviceInfo, ExtensionInfo extensionInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.ReportViewer.Common.ReportRenderer.Render(ReportRendererArgs args)
Step into: Stepping over method without symbols 'System.Windows.Forms.Application.ThreadContext.RunMessageLoop'
</Output>
Nasko
Telerik team
 answered on 06 Feb 2014
3 answers
472 views
Good afternoon, how can I show a panel with round edges instead of square. Below attached an example of what I'm trying to do.
PagosInteligentes
Top achievements
Rank 2
 answered on 06 Feb 2014
1 answer
203 views
We have a webapplication which generates an invoice for customers. For the invoice we have a report with a subreport in the detailsection.

When having a certain number of invoicelines (like 1 or 5) the subreport starts at the second page where we expect it to start on page 1. When increasing the number of items the report behaves correctly.

Any thoughts how we can make sure the invoice lines are starting at the first page?

I've attached three options

1 line PDF exported to images
5 lines PDF exported to images
50 lines PDF exported to images (just included 1st, 2nd and last page)

Here the difference is clear: 1 and 5 invoice lines are causing the subreport to start at the 2nd page, the 50 lines report works correctly.
Nasko
Telerik team
 answered on 05 Feb 2014
6 answers
1.0K+ views
Just today I tried opening up a report to make edits, and I get the titular error in Visual Studio: "Error HRESULT E_FAIL has been returned from a call to a COM component"

I've attached a screenshot.

After I got this error, I upgraded to the latest release. Note that I can still view reports in my MVC application, but I can't edit them with Visual Studio.

What has gone wrong, and how do I correct it?

Thanks,

Matt
Stef
Telerik team
 answered on 05 Feb 2014
3 answers
142 views
I have to say, I really like what I see with Telerik Reporting.  The accuracy of the export to Excel and PDF is what has led me to look at it deeper and deeper.  However the Chart Object in the reports simply sucks.  When I was using the RadChart in a standard ASP.NET page I could easily get in and change individual bar colors during the ItemDatabound event.

The attached image is a chart I created using RadChart and a standard ASP.NET webform.  If the value in the PeakUsages series (Bar) exceeds the value in the LicenseCount series (line) then the color of the chart bar is changed to red.  This is accomplished with the simple code listed below.

However the chart in reporting (which as I understand it is suppose to be RadChart under the covers) can't do this,  It doesn't appear that you can modify the chart during the databound event.  Why?   

To make matters worse, attempting to refine the charts visual appearance in Visual Studio is painful at best.  You have to drill into 15 different properties to change the back ground color of the plot area.  Then when you use preview to see how it looks and then switch back to design mode.  Your previous properties context is completely lost.  When you return to design mode your selection is set back to the report not the previous selected object and you lose all of the expansion you had done in the properties pane.  (Note I am using VS2010 RC with Q1 2010).

The shear fact that I can't duplicate the chart functionality in Telerik Reporing is forcing me to continue to use RadGrid and RadCharts as my reporting solution, which really sucks as I have to spend a lot more time focusing on code to properly export the Grid to Excel and PDF.

When is the Chart in Telerik reporting going to become a first class object?   
Things I'd like to see include
  1. Full control over the chart rendering from the code behind.  Allow me to have the same ItemDataBound event logic as RadChart
  2. Context, Context, Context.   Remember where I was when I return from preview, don't force me to reselect the chart, expand properties etc.
  3. Cut and paste a chart definition, or access to the markup for the chart.  
  • I want to be able to paste a chart definition from an asp.net page into a report.  Or allow me to mark it up in the same manor, which would allow me to quickly duplicate the look and feel and refine it without having to mess with the properties pane.

protected void rowChart_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e) 
    { 
    if(e.SeriesItem.Parent.Name == "PeakUsages"
        { 
        DataRowView drv = (DataRowView)e.DataItem; 
        if(drv["PeakUsages"] != DBNull.Value) 
            { 
            if(Convert.ToInt16(drv["PeakUsages"]) > Convert.ToInt16(drv["LicenseCount"])) 
                { 
                e.SeriesItem.ActiveRegion.Tooltip = string.Format("Usage exceeds license: \nDate: {0}\nUsage: {1} \nLicense: {2}"
                                                                   Convert.ToDateTime(drv["UsageDate"]).ToShortDateString(),  
                                                                   drv["PeakUsages"].ToString(),  
                                                                   drv["LicenseCount"].ToString()); 
                e.SeriesItem.Label.Visible = false
                e.SeriesItem.PointAppearance.FillStyle.MainColor = Color.DarkRed; 
                e.SeriesItem.Appearance.FillStyle.MainColor = Color.DarkRed; 
                e.SeriesItem.Appearance.FillStyle.SecondColor = Color.Red; 
                e.SeriesItem.PointAppearance.FillStyle.SecondColor = Color.DarkRed; 
                e.SeriesItem.PointAppearance.Border.Color = Color.DarkRed; 
                } 
            else 
                { 
                e.SeriesItem.Label.Visible = false
                e.SeriesItem.PointAppearance.Visible = false
                e.SeriesItem.ActiveRegion.Tooltip = string.Format("Date: {0} \nUsages: {1}", Convert.ToDateTime(drv["UsageDate"]).ToShortDateString(), drv["PeakUsages"].ToString()); 
                } 
            } 
        else 
            { 
            e.SeriesItem.Visible = false
            e.SeriesItem.Label.Visible = false
            e.SeriesItem.PointAppearance.Visible = false
            } 
        } 
    else 
        e.SeriesItem.Label.Visible = false
    } 

Stef
Telerik team
 answered on 05 Feb 2014
34 answers
3.1K+ views
I've spent a considerable amount of time searching the documentation for an example and reading through other posts, but haven't found what I'm looking for, so forgive me if this is covered somewhere already, I just haven't seen it.

Basically, I'd like to create a report with a dynamic table on the report. By dynamic I mean at design time I don't necessarily know all of the fields that will be part of the dataset (the dataset is built at runtime based upon input from the user). Ideally, I would like to take my populated dataset and bind it to the report at runtime, and add, if necessary, any columns to the Telerik Reports table on the report. 

Are there any examples or demos of such a report? Is this even possible?
Hinata
Top achievements
Rank 1
 answered on 05 Feb 2014
2 answers
617 views

I'm trying to implement my first ReportViewer, and I'm getting this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------
  
The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: Telerik.ReportViewer.WebForms.ReportViewerHandlerNotRegisteredException: The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.
  
Source Error: 
  
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
  
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
  
  <%@ Page Language="C#" Debug="true" %>
  
or:
  
2) Add the following section to the configuration file of your application:
  
<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>
  
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
  
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  
  
Stack Trace: 
  
  
[ReportViewerHandlerNotRegisteredException: The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.]
   Telerik.ReportViewer.WebForms.ReportViewer.CheckHttpHandlerRegistrations() +207
   Telerik.ReportViewer.WebForms.ReportViewer.OnInit(EventArgs e) +62
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6741
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.myplannerreport_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

But I have this in my Web.Config:
<system.webServer>
        <handlers>
        <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
        <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_Web_UI_DialogHandler_aspx" />
        <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_RadUploadProgressHandler_ashx" />
        <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_Web_UI_WebResource_axd" />
        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_ReportViewer_axd"/>
        <remove name="Telerik.ReportViewer.axd_"/>
        <add name="Telerik.ReportViewer.axd_*"
                 path="Telerik.ReportViewer.axd"
                 verb="*"
                 type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
                 preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

Any ideas?
Rakesh
Top achievements
Rank 1
 answered on 05 Feb 2014
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?