I would like to set the Datasource of my report to a business object (ObjectDataSource) that has all of it's data already populated. ie. when the report requests the data, it does not need to go out to any datastore to retrieve it, the object is already initialized with the data it requires.
I have a class with a method that returns a list of objects.
public class SummaryReportData{ public List<SummaryData> RetrieveData( ) { return SummaryDataList; } public List<SummaryData> SummaryDataList { get; set; } }
When I am launching my report, I am retrieving the data I would like to display from my data service, and setting it on the object that the report will be requesting the data from. Like so:
var report = new MonthlySummaryReport(); var dataObject = new SummaryReportData();dataObject.SummaryDataList = someDataService.GetSummaryReportData(100);report.DataSource = dataObject; ReportToDisplay = new InstanceReportSource();ReportToDisplay.ReportDocument = report;(this is a wpf application, so I am databinding the 'ReportToDisplay' report source to the viewer. This works as expected)
I then have the report setup to use an ObjectDataSource, Business Object set to "SummaryReportData", and the DataMember is set to "RetrieveData".
What ends up happening is, even though I have pre-initialized the SummaryReportData object with my data, when the report renders it is creating a new instance of that object, calling it's constructor, and then calling the "RetrieveData" method, which returns an empty list.
How do I get the report to use the object instance I am supplying it, instead of recreating it when it launches?
I need to be able to set the line height for content within a multiline textbox. There does not seem to be a setting for this. Is it possible through a style, or other means?
See attached screenshots for samples (Wrong.png is what I can currently do in a Telerik Report, and Target.png is what I would like it to look like).
Thank you,
Alex
I need to be able to set the width of the bars, within my report. In the attached screenshot, you'll see bars that are too narrow. I'd like to make them as wide as each column would allow, with padding or margin on either side from keeping them from colliding with one another.
The first screen shot is what I was able to produce (telerik-version.png)
The second, is what I would like to produce (target.png).
Any help is greatly appreciated!
Regards,
Alex
We are using Telerik Reporting to generate pdfs on our site. Everything works as expected for days at a time, then suddenly stops working for all users. When we restart the app pool it starts working again. We are using Q2 2013 SP1 of Telerik Reporting. Any suggestions? (other than upgrading unless you know that this issue was addressed in an update) Here is the error stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Telerik.Reporting.Processing.ItemFactory.ResolveRuntimeItemType(Type t) at Telerik.Reporting.Processing.ItemFactory.Create(Object itemDef) at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IRenderingContext processingContext) at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, IRenderingContext processingContext) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)I am usinh HTML5 Telerik Report Viewer to display reports uisng ReportBook feature. I have only one parameter which is appearing on the right hand side of the report viewer as a combo box. As I don't need multiple selection, I want to display this as a dropdown and on the top of the report viewer.
This is exactly how it appears ii ASP.Net ReportViewer Control but with Html5 reportviewer its completely different. Will I be able to customize this easily ?
Hi,
I am interested in ​telerik reporting tool.
My requirement is as follows:
We have web site developed in Asp.Net MVC. Back end SQL Data base(2012 R2) .
Now we need to integrate the reporting module to the existing web site and below are the requirement, can you please provide more information if the below requirements will be supported in ​Telerik report and also do we need to install Telerik software in different server?
1) Drag & Drop functionality for the user who login into the site(They should be able to create report on their own)
2) All report types(Chart, Text, PIVOT Table and KPI etc)
3) Different file formats are supported: HTML, Excel, CSV, PDF, XML
4) Reports can be created and sent to browsers, emails, mobile devices
5) Schedule and automated reports
Regards
Sri
Hi,
I have a main report which has a sub report.
The main report receives para1 from user's input and talks to the SQL server to get para2 and para3 and pass these to sub-report as parameters. where should I set the breakpoints in visual studio to see the values of para2 and para3?
thanks!