Telerik Forums
Reporting Forum
1 answer
102 views
I am binding a chart to a data table at run time. This works great. However, if there are leading zeros in the x-axis labels they are removed automatically. How can I retain leading zeros in the x-axis labels?
Steve
Telerik team
 answered on 27 Mar 2012
3 answers
162 views
Hello there,

we are using telerik reporting (latest of 2011 as of now, will most likely not upgrade all controls etc. before this project stage is done) and everything is working fine, but i am missing or can't find one thing right now:

I'd like to be able to announce an estimate rendering time once the datasource for a report exceeds a certain number of rows. With test data i created some reports that took like 20 minutes to render with around 12000 pages to be rendered, something i do not expect often in reality but i do not want to forbid to process such reports.

Is there any way to warn the user "Your report of an estimate XX pages will take an estimate XX minutes/seconds/whatever"?
Of course i could just use average values from testing with several machines etc. but that seems a very very dirty approach to me ;)

Thanks in advance
Seb
Steve
Telerik team
 answered on 27 Mar 2012
1 answer
161 views
Hello,

I am wondering if there is a way to tell what the runtime location of a panel or other report element will be once the data is populated and the report is rendered...?

I am generating a report with some unknown amount of data in a table, then rendering the report into a pdf using the ReportProcessor and RenderingResult classes. Once the pdf is rendered, I hope to append some additional objects to the pdf outside of telerik reporting, so I set up an empty panel at the bottom of the report for this piece. The issue is though that I have to add my objects by specifying the x and y PDF page coordinates, I just need to know (even approximately) how far down my panel will be.

Is this possible? As far as I can tell the panel.Location coordinates are given in terms of the design time layout.

Thanks!

Robert
Steve
Telerik team
 answered on 27 Mar 2012
3 answers
385 views
Hello,
I have a problem acessing a Table's DataObject that lies in the Detail Section.
The Detail Section's Datasource is set to a list of Questions and I want to display
a List with the possible answers of each Question. So I use the ItemDataBind of
the Detail Section to set each Processing.Table Datasource:

carta.Items["detail"].ItemDataBinding += detail_ItemDataBind;
((List)carta.Items["detail"].Items["ListAnswers"]).ItemDataBinding += ListAnswers_ItemDataBind;

private void detail_ItemDataBind(object sender, EventArgs e)
{
            var detail = sender as Telerik.Reporting.Processing.DetailSection;
            var processingTable = detail.ChildElements.Find("ListAnswers", true)[0] as Telerik.Reporting.Processing.Table;

            Question question = detail.DataObject.RawData as Question;
            processingTable.DataSource = question.AnswersList;
}

this works fine, but if I want to access each Answer object within the ListAnswers ReportItem I get a ClassCast exception, because
the List.DataObject is set to the same object as Detail.DataObject, even though I set a different Datasource to them:

private void ListAnswers_ItemDataBind(object sender, EventArgs e)
{
            Telerik.Reporting.Processing.Table tableProc = (Telerik.Reporting.Processing.Table)sender;

            // class cast error here, RawData is a Question instead of Answer, but tableProc.Datasource is a list of Answer
            Answer answer = (Answer) tableProc.DataObject.RawData;
}

What am I missing ?
Gustavo
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
403 views
Hi,

I'm trying to get working my first telerik report with version Q1 2012 but i encountered a problem. The main object of my report is a crosstab which is binded to an OLAP data source. The crosstab was working just fine until I update the data of the cube. Indeed since the update I get the following error :
"The expression contains object 'Value' that is not defined in the current context"

I investigated for a while and figured out that the error occurs only when all the value of a column (in the data source) are NULL.Unfortunately all the value of this column setted to null is a normal behaviour.

Have I missed something or done something wrong? Any help will be appreciated.
Gaël
Top achievements
Rank 1
 asked on 26 Mar 2012
1 answer
172 views
Hi, I´ve been using the Telerik Report for about two realeases. I used to be able to set the ZoomMode to PageWidth, so that the ReportViewer showed completely in the ReportViewer, but now that I upgraded to the Q3 2011 SP1 release, it tells me that it is now obsolete and I shouldn´t use it anymore...

What function should I use instead to accomplish this?
Steve
Telerik team
 answered on 26 Mar 2012
0 answers
184 views
Hi..

I am using Telerik Reporting Control Q3 2010. I want to display some dynamic datas in tree view format. Please suggest me how to achieve that using above mentioned version of telerik controls.

Also I just want to know how to populate datas using Listbox control in Telerik reporting Q3 2010. Please let me know ASAP.

Thanks in advance.

Irshad
Irshad
Top achievements
Rank 1
 asked on 26 Mar 2012
3 answers
154 views
hi,

I am add the picture box in telerik report in web application. And create the aspx page add the telerick reportviewer. i am add the report file in report properity, that time showing error message - Cannot create an object of type 'Telerik.Reporting.Report' from its string representation 'Telerik_Test.AYSO_Test, Telerik_Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' for the 'Report' property. C:\Documents and Settings\Parthiban\My Documents\Visual Studio 2008\ReportSample\Default.aspx


Any one help me....
Steve
Telerik team
 answered on 26 Mar 2012
1 answer
585 views
Hi,

I have a report that I am converting from Crystal that has a need to determine the page numbers for a subreport, which then get passed to another subreport.
What I do today is determine the number of pages of the details and calculate the start page and populate some text that reads "See pages 2 to 5" for example of the 5 pages.
I then pass that from the master report to the first subreport as a parameter to add to a text box.

Any ideas, suggestions on this one?

Thank you!
Steve
Telerik team
 answered on 26 Mar 2012
4 answers
190 views
Hello everyone,
I have a website that calls a server side generated report, in function of some check-boxes selected. These reports are mainly exported in Excel. Each check-box selected should be a document map in the report and has to be a different sheet in the excel export.

For example there are 3 check-boxes:
- Generate report A
- Generate report B
- Generate report C
When the check-boxes A and C are checked, it generates a report with Document map: A & C and while exporting in Excel, it creates the sheets : A & C. 

How does the report know what report to generate: A String parameter is sent to the report, for this example the String "A,C" is sent, and so the report knows that those 2 reports have to be generated. 

I searched the several methods to do that :
1) Report Book
The report book is great. It creates a Document map and a excel sheet for each document map. But the problem is that it is not possible to work with the report parameters in the report book. So I cannot parse the String "A,C" that is sent to the report. The reports added to the Book are "static" and cannot be added dynamically.

2) Master - Sub reports
This generates a document map and it is possible to work with the report parameters in the master report. The master report parses the parameter "A,C" and knows that it has to generate those 2 reports . But the problem in that solution is that it doesn't create several sheets in excel; it puts all on the same page.


Is there a third solution I didn't think of? How can I generate dynamically reports and having excel sheets? Do I have to create a report book for each combination of the check-boxes? A, B, C, AB, AC, BC, ABC ; and choose on the client side which Report-book has to be called? But that would make a lot of work.
Is it possible to have a master-sub report with several excel sheets? I don't think so, because it is one master-report; so, one sheet.

Thanks a lot,
Raphael

PS: I am using the version Q3 2011 SP1 of Telerik Report

Raphael
Top achievements
Rank 1
 answered on 26 Mar 2012
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?