Telerik Forums
Reporting Forum
2 answers
55 views
I have a report I have created in Q2 2013 Reporting that looks fine on the browser, looks fine in the preview, but is not exporting correctly.  There is a giant gap between the body and the footer and I'd like it to not be there like all of my other reports are.  I have attached images of the browser, the visual studio preview, and what actually happens when the PDF is exported or printed.  Is there a setting I changed inadvertently that made this happen?  I have several other reports of similar make that do not have this giant gap and will push the footer down dynamically.  Thank you

Nasko
Telerik team
 answered on 07 Feb 2014
1 answer
792 views
How do you suppress a repeating column in a report?

My report currently looks like this:

SalesPerson  Product Quotes 
John   Cars 68 
John   Vans 25 
June   Cars 45 
June   Cycles 22 
June   Trucks 17 
Tim    Trailers 16 
Tim    Cars 45 
Tim    Vans 12 
Tim    Tractors 25 

I wish to suppress the name of the salesperson so that it looks like this:
SalesPerson  Product Quotes 
John   Cars 68 
          Vans 25 
June   Cars 45 
          Cycles 22 
         Trucks 17 
Tim    Trailers 16 
     Cars 45 
     Vans 12 
     Tractors 25 

What feature of the report designer allows me to do this? I have tried some grouping actions and it has not worked.



Nasko
Telerik team
 answered on 07 Feb 2014
1 answer
237 views
There is  a barcode in pagefootersection. I need to set its value and make it conditionally visible through code. I am able to set its value in code but to implement visible conditionally I need to use Pagenumber object and I am not able to refer this object.I can use it in design but not getting a way to refer it in code. How to refer pagenumber object in code? I want to display barcode if pagenumber=1 and set its value in code.



Babita Banerjee
Peter
Telerik team
 answered on 07 Feb 2014
1 answer
137 views
I created a graph in telerik reporting. But I could not get rid of the 0 beside the Y-axis label. See attachment. I've compared with telerik sample reports, they are the same. in coordinate system.
Also, in Capture2.jpg, the y-axis scale is not right. The decimal scale is round as integer. Can we only show 1,2, not 1.5?
Stef
Telerik team
 answered on 06 Feb 2014
1 answer
560 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
161 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
71 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
150 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
429 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
188 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
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?