Telerik Forums
Reporting Forum
1 answer
683 views

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?

jeff
Top achievements
Rank 1
 answered on 15 Sep 2015
1 answer
740 views

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

Stef
Telerik team
 answered on 14 Sep 2015
1 answer
241 views

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

Nasko
Telerik team
 answered on 14 Sep 2015
1 answer
93 views

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)

Stef
Telerik team
 answered on 12 Sep 2015
1 answer
102 views
I am facing issue of sending additional values from html5 javascript report viewer to asp.net web api. I just want to know, how to send additional parameters from html5 javascript reportviewer to asp.net web api and how to read the same at server in c#.
Stef
Telerik team
 answered on 12 Sep 2015
1 answer
517 views

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 ?

Stef
Telerik team
 answered on 12 Sep 2015
1 answer
116 views

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

Stef
Telerik team
 answered on 12 Sep 2015
11 answers
338 views
Hi,

I have a report with a table,  inside the table are several textboxes.  They are set to grow according to the amount of text inside them.  The row doesn't expand it's height to accomodate.  I'm not sure if this is a text box not growing issue or the row not growing.

Any known issues or pointers to what the problem may be?

Regards

Jon
Stef
Telerik team
 answered on 12 Sep 2015
5 answers
248 views

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!

 

 

Stef
Telerik team
 answered on 12 Sep 2015
4 answers
119 views
Is it possible to use the report viewer in a Lightswitch project? If so, how?
Stef
Telerik team
 answered on 12 Sep 2015
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?