Telerik Forums
Reporting Forum
14 answers
999 views
Hi,

when i used telerik reporting when the records are less we are not getting the bottom border.

same way we are not getting the right border also.

 please find the screenshot.


In our application we are using Reports.
In that we've using sub reports. In Sub Report  while exporting to excel its works fine
but when we merge that report in Main report ,then export to excel its Showing error -"Error.Png". 


Pls have a glance on the attached snapshots and provide me some solution.


Thanks & Regards,
Karthik
Squall
Top achievements
Rank 1
 answered on 02 Dec 2011
1 answer
100 views

I am having a problem with my syntax when I try to use a Bitwise operation.

 

= iif(Fields.test Or 256,’true’,’false’)

I am getting an Type mismatch on ‘Or’ 

What am I doing wrong?

Thanks, Dan

Elian
Telerik team
 answered on 02 Dec 2011
1 answer
177 views
Hi,


I have a telerik reportViewer in which i´m displaying an invoice preview before the client can save or print the PDF file, this invoice report contains a textbox in wich I display a very long encrypted string with no spaces in it, the problem comes when the reportviewer renders the report, this textbox grows horizontally and messes up the whole report, is like it´s not respecting the margins.


It´s weird because when I save or print the file, it displays just fine.


I´m attaching both: reportOnViewer and reportAfterSave
Peter
Telerik team
 answered on 02 Dec 2011
5 answers
240 views
Hello,
it's possibile to set somewhere some metadata? I wish to add in exported pdf the number of page and an id that an external tool will process..
it's possible?
Thanks
Paolo
Steve
Telerik team
 answered on 02 Dec 2011
2 answers
631 views
I am getting an object reference error when trying to display my report. I get this error only after I upgrading to the latest version Q3 2011 (5.3.11.1116).  

With no code changes at all I can down grade to version Q2 2011 SP1 (5.1.11.928) and the report works just fine.

Here is the stack I receive in the Output window while debugging...

*** RenderReport #0 STARTED ***
An error has occurred while rendering the report: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Reporting.Processing.LayoutEngine.LayoutAnchoredItem(ILayoutItem item, RectangleU rect)
   at Telerik.Reporting.Processing.LayoutEngine.Layout(ILayoutContainer container)
   at Telerik.Reporting.Processing.ReportSectionBase.Measure(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.PageSection.Measure(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureElement(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.Report.MeasureElement(ProcessingElement elementToMeasure)
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.GetMaxPageSectionWidth()
   at Telerik.Reporting.Paging.PageCompositionBase.SetCurrentWidthCore()
   at Telerik.Reporting.Paging.PageCompositionBase.set_CurrentPageArea(PageArea value)
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.PrepareNewPage()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.NextUsableArea()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.NextVerticalPage()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.PageOverride()
   at Telerik.Reporting.Paging.PagerBase.Page(IPageHandler handler, Report report)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingInfo, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
*** RenderReport #0 DONE in 00:00:00.0302191 ***


WinViewer> An error has occurred while rendering a report:
The thread 'Rendering' (0x2ee0) has exited with code 0 (0x0).
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Reporting.Processing.LayoutEngine.LayoutAnchoredItem(ILayoutItem item, RectangleU rect)
   at Telerik.Reporting.Processing.LayoutEngine.Layout(ILayoutContainer container)
   at Telerik.Reporting.Processing.ReportSectionBase.Measure(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.PageSection.Measure(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.ProcessingElement.MeasureElement(MeasureDirection dir, Graphics graphics)
   at Telerik.Reporting.Processing.Report.MeasureElement(ProcessingElement elementToMeasure)
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.GetMaxPageSectionWidth()
   at Telerik.Reporting.Paging.PageCompositionBase.SetCurrentWidthCore()
   at Telerik.Reporting.Paging.PageCompositionBase.set_CurrentPageArea(PageArea value)
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.PrepareNewPage()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.NextUsableArea()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.NextVerticalPage()
   at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.PageOverride()
   at Telerik.Reporting.Paging.PagerBase.Page(IPageHandler handler, Report report)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingInfo, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.ReportViewer.Common.ReportRenderer.Render(ReportRendererArgs args)

Shonda
Top achievements
Rank 1
 answered on 02 Dec 2011
5 answers
438 views
Hi,

I'm currently using a report viewer to show different report. The list of report that can be show is in a comboBox. When I clicked on the button "preview", the reportViewer will show the selected item in the comboBox. I notice that if I click many times on the button preview when the report selected is the same, a error appears. Don't know if it is something wrong I'm doing or what, but here is the error that I received :

Server Error in '/' Application


Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.Generic.List`1.get_Item(Int32 index) +12732076
   Telerik.ReportViewer.WebForms.StreamManager.GetPageStream(Int32 index) +89
   Telerik.ReportViewer.WebForms.ReportPageOperation.WriteHtmlPage(StreamManager streamManager, Int32 pageIndex) +94
   Telerik.ReportViewer.WebForms.ReportPageOperation.WriteHtmlPage(Int32 pageIndex) +79
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() +103
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +115
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +415
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

Anyone know what it mean ? 
Thank you

David
Fandy Backers
Top achievements
Rank 2
 answered on 02 Dec 2011
1 answer
62 views
Having trouble figuring this out. What I want is fairly simple, I have a report where all of the data is in metric units. I need to give the user the ability to switch to SI units as sometimes they need to export the data in metric, and other times they need to export the data in SI units.
Elian
Telerik team
 answered on 01 Dec 2011
2 answers
129 views
Hello,

I'm trying to load my first chart using Telerik Reporting. I have this issue:

I want to create a line chart with two series. the data retrieved from sqldatasource is this:

Euribor1Mes    1Y    2.1153391880
Euribor1Mes    2Y    1.5951715250
Euribor1Mes    3Y    1.7828868410
Euribor1Mes    4Y    2.0519780200
...
Euribor1Mes    47Y    3.2136528810
Euribor 1Mes    48Y    3.2181399930
Euribor1Mes    49Y    3.2224216550
Euribor1Mes    50Y    3.2269428250
Libor1Mes    1Y    2.1153391880
Libor1Mes    2Y    1.5951715250
Libor1Mes    3Y    1.7828868410
Libor1Mes    4Y    2.0519780200
...
Libor1Mes    47Y    3.2136528810
Libor1Mes    48Y    3.2181399930
Libor1Mes    49Y    3.2224216550
Libor1Mes    50Y    3.2269428250

The first field is the name of each serie (there are two different), the second field is the X axis data and the third one is the Y axis data.

Can I load two chart series using this data?

Thank you very much.
Elian
Telerik team
 answered on 01 Dec 2011
1 answer
186 views
Hi Telerik Team,

    Is it possible to pass login session (credentials/values) from an asp page to a table datasource in telerik report? if yes, then how do I do it?
    I am using Q1 version. I followed some samples/examples to connect datasource programatically from telerik website but that doesn't produce the results. It causes error message " ExecuteReader: Commandtext property is not initialized for table 1".
    I have login session information in  .aspx page containing reportviewer and one .cs report which is attached to reportviewer.
Would you please reply to dhara.savani@Xerox.com?

Thanks,
Dhara
Peter
Telerik team
 answered on 01 Dec 2011
1 answer
56 views
Hi,

I'm creating my first report, to display an "offer", this offer has an id that I receive as a parameter of my data source.

I created an EntityDataSource, connected it to my data.

I've also added a parameter on the datasource to have only the row with the id in parameter.

Now, I'm a little lost, I've created some textBox, but if I go in the expression editor, in "Fields" I've a "No Data Source", why?

How can I bind the data of my selected row??

Image of my situation
Peter
Telerik team
 answered on 01 Dec 2011
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?