Telerik Forums
Reporting Forum
0 answers
80 views
Hello all ,

Am experiencing a strange problem , on itemDataBound "procDetail " always remains null , ie "sender as        Telerik.Reporting.Processing.DetailSection; " returns null .. am i missing any thing ..???

private void detail_ItemDataBound(object sender, System.EventArgs e)
{
    Telerik.Reporting.Processing.DetailSection procDetail = sender as        Telerik.Reporting.Processing.DetailSection;

Thanks
-Prince M.Premnath
Prince M. Premnath
Top achievements
Rank 2
 asked on 14 Jul 2010
1 answer
142 views
I have a Report that has a Bar chart. The chart works and displays as expected in Preview mode (designer) but when I debug it the chart is not displayed (space is used). I figured I was doing something incorrect but was unable to resolve this problem. On a lark I exported the chart to rich text and the chart displays in the exported file.

Anyone else dealing with this on SL4 Reporting Version 4.0.10.423
Stoick
Top achievements
Rank 2
 answered on 13 Jul 2010
3 answers
291 views
I just started using telerik reporting and I'm wondering about this scenario. Basically, I created a business object based report with two levels of grouping. I'm accessing it through the web viewer and I'm sending it a list of Ienumerable<object>. There are about 24000 rows in the inenumerable. The report gets it, but it takes almost 2 minutes to render (it takes 2 seconds to get the data). The report winds up being 1900 pages. I'm wondering, are the pages loaded on demand? Is there some kind of way to speed this up by loading a page at a time?
Steve
Telerik team
 answered on 13 Jul 2010
9 answers
295 views
I have a master report, the details section of which contains 3-subreports; "Payroll", "O&M Labor" and "Capital Labor". If one of the subreports contains no data, it is not printed, which I expect. In the 2nd screenshot, the "Payroll" subreport doesn't print because there are no rows. However, the space allocated for the subreport is blank, dropping the "O&M Labor" subreport down about .25". I need a way to test if a subreport is empy, and relocate the subsequent reports accordingly. Compare the 2-screenshots and you can see what I mean.

Thanks

It looks like all I need to do is set the .Visible property of the empty sub-report to False, and that takes care of blank space. The subsequent sub-reports reposition themselves. But I'm still trying to figure out if the sub-report is empty.
Steve
Telerik team
 answered on 13 Jul 2010
1 answer
135 views
Is it possible to make the report viewer automatic date UI fields show up there in a date format different than MM/DD/YYYY?
Steve
Telerik team
 answered on 13 Jul 2010
3 answers
151 views
Hello: I am noticing a strange behavior with the PDF export of a Telerik Report and am hoping you can help me with it. I have a Report where I added content via the designer, notably a report header that has a table containing underlined fields, something like:

John Smith (border on bottom of cell)            800-123-4566 (border on bottom of cell)            asdf@aol.com (border bottom)
Name                                                             Phone                                                                  Email

....

and then rows of data are appended in the details section. The report views fine in the ASP.NET application. When the file is exported to PDF it shows fine if you go out to the file system and double-click the file to open it in Acrobat. The same PDF, when loaded from the browser (instead of going to the file system c:\inetpub\wwwroot\filename.pdf, go to ie, and navigate to the PDF) loads the report initially but fails to render content that is underlined on the report. So in the above table, John Smith, the phone, and email address would not show up. If the page is resized or zoom changes, the content then tends to load. It also shows up on printing. For the most part, the problem appears to be with content in the report header and it seems to me like the page isn't quite loading 100% (even though Adobe says it is loaded 100%).

I'm not sure if this is an Acrobat problem, an IE problem, or a Telerik problem. Any help is appreciated.
Steve
Telerik team
 answered on 13 Jul 2010
2 answers
805 views
Hello,

I am building an application that uses Telerik Reports and I need to figure out a way to be able to create a report independent of any database and then at runtime bind it to a DataSet created completely in code.  To make matters worse, I am unable to add the reporting project to a solution that contains the project I need the report for because that project is a Web Site and there doesn't appear to be any way of getting that done.  What I am able to do is to build the Report Project and then upload the binaries from the Report Project to the website.  From there I can view the Report on the page using the ReportViewer.

Since I am not using a database, I am unable to use the Telerik Reporting Wizard to automatically create my dataset and databind the fields to the data.  What I have done is added a DataSet to my Report Project and built it by hand using the designer to have the exact schema of my results DataSet that I am creating at runtime.

Here is essentially what I'm doing right now
1) Pull records I need in the report from the database into my code
2) Perform relatively complex business logic on the rows that is either impossible or unwise to do in SQL
3) While processing the rows, manually add the results to a DataTable which I then add to a DataSet
4) After processing, create a new instance of my report set myReport.DataSource = myDataSet
5) Add the report to the viewer

When I bring up the page that holds the viewer, the desired report appears in the viewer, but does not contain any data.  Obviously there is a gap in my understanding of how Telerik Reporting works.  Is it possible to bind data to a report without it necessarily being pulled from a database?

Thanks
PRABHU
Top achievements
Rank 1
 answered on 13 Jul 2010
3 answers
150 views
Does anybody know how to populate a list of reporting services reports from a report server, without manually recreating a list of reports and reportlinks?

Purpose: I have a ReportViewer on a webpage and I want to pass the reportname/link along with some parameters to the report viewer.

I'm not sure if this is the correct forum. Please point me in the right direction if I am off base.

Thanks for any help.
-Megan
Massimiliano Bassili
Top achievements
Rank 1
 answered on 13 Jul 2010
1 answer
202 views
Hi..
I added property to my report called   _total_cost

 

public partial class  Total_Tons : Telerik.Reporting.Report

 

{

 

    public decimal _Total_Cost { set; get; }


I have code that calculates the the total cost in the ctor of the Report

this.DataSource = _lstInvoices

 

 

var ct = _lstInvoices.Sum(c => c.cost);

 

_Total_Cost =

Convert.ToDecimal(ct);


How can I use this value in the TEXTBOX ?

When I set the text value to.....
Value =   "= (Sum(Fields.cost)/_Total_Cost)*100"

I get an error 

"_TOTAL_COST is NOT DEFINED IN THE CURRENT CONTEXT'


thanks in advance

 

Steve
Telerik team
 answered on 13 Jul 2010
1 answer
100 views
Hi,

For give me this this has been answered already in this forum.  I tried to find it.

Here's the scenario:
In a Windows Form applicainn, I have a report that contains several sub-reports .  Each sub report binds against business objects that refer to a global singleton object to get their necessary query/look up parameters, like date range.

Currently, the container report handles the .._ItemDataBinding event and sets the global business objects.  Each sub-report handles the .._ItemDataBinding where the business objects are updated and then bould to report.

Well, my data seems to binding late.  It works if i press the preview button twice.

So, it seems like the report has already rendered when the ItemDataBinding event is called.  Does that make sense?

I don't get it.

Is there a better event I could utilize?

Thanks,
Michael

Steve
Telerik team
 answered on 13 Jul 2010
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?