Telerik Forums
Reporting Forum
3 answers
524 views
HI,

I'm trying to assign datasource to a subreport in the masterreport after InitializeComponent() and the data doesn't seem to be loading. I've tried with SqlDataAdapter, DataSet, I've also tried assigning in the needdatasouce event and nothing seems to work. Please let me know how I can do it. I also need to pass parameters from the master to the subreport at the time of loading (not from any datafields or textboxes but predetermined).

public masterform()
{

InitializeComponent();

//instantiate subreport form here.

 

//I get SqlAdapter da here

 

 

 

this.detailSubReport.ReportSource = subreportform;

 

 

this.detailSubReport.ReportSource.DataSource = da;

 


}
Thanks,
Laxmi
Ivan
Telerik team
 answered on 30 Dec 2008
4 answers
252 views
Hi,

I need to display link (URL) inside report, and when user click on link, it is open in browser. Is it possible ?
Milen | Product Manager @DX
Telerik team
 answered on 29 Dec 2008
3 answers
141 views
Hello,
I'm trying to design a report that would display data in a list format as well as a graph. To use as much real estate as possible the list should be displayed on 3 column. However the graph should only be displayed once per report and it should be page-width wide.

Now, this is what I've tried so far and none worked, maybe I'm missing something:
- multiculmn subreports to display the list: apparently not implemented in this version yet;
- multicolumn report with the graph displayed in the the page footer: working somewhat, I cannot make the page footer shrink when the graph is not visible.

Any help is greately appreciated.
Thank you,
--Virgil


Example:
|---------------------------------------------------------------------------------------------------------------|
|     Follow directions              01/08/2008    56%                Ask for help as needed    |
|     01/07/2008       100%          02/25/2008    45%                01/07/2008            52%        |
|     01/08/2008         97%           Appropriate Behavior      01/08/2008            69%        |
|     02/25/2008         89%          01/07/2008    78%                02/25/2008            70%        |
|     Participate                         01/08/2008    82%                                                             |
|     01/07/2008        87%           02/25/2008    83%                                                             |
|                                                                                                                                           |
|                                                                                                                                           |          
|    The Graph                                                                                                                      |  
|     ________________________________________________________________      |
|    |                                                                        ______                                            |     |
|    |            _____                   /                             /            \                                           |     |
|    |                      \    ______/                             /               |                                          |     |
|    |                       \  /                                        /                 |___                                    |     |
|    |                        \/                           ______/                           \                                  |     |
|    |                                                                                               \                                |     |
|    |________________________________________________________________|     |
|---------------------------------------------------------------------------------------------------------------|
Milen | Product Manager @DX
Telerik team
 answered on 29 Dec 2008
1 answer
86 views
Hi all,
   I am new to this form and Telerik reporting. I want to know how i can implement page breaks and subtotals from coding depending on the field parameters passed.
Ivan
Telerik team
 answered on 29 Dec 2008
3 answers
218 views
Hi all,

As you know, telerik reporting tool has some problems when the session state is persisted in ASP.NET StateServer.
Q3-SP2 (v2.9.8.1209) solved some issues about this, thank you, but I still have a problem and it is really weird.

I am creating a report object and setting the value of a private instance variable that I defined. The code snippet is;

/// <summary> 
    /// Summary description for Report1. 
    /// </summary> 
    [Serializable] 
    public partial class Report1 : Telerik.Reporting.Report 
    { 
        private int SomeVariable; 
        public Report1() 
        { 
            InitializeComponent(); 
        } 
        public Report1(int someVariable) 
            : this() 
        { 
            this.SomeVariable = someVariable; 
        } 
 
        private void Report1_NeedDataSource(object sender, System.EventArgs e) 
        { 
            (sender as Telerik.Reporting.Processing.Report).DataSource = 
                new SampleDataSourceItem[]{ 
                    new SampleDataSourceItem{ItemName="Item1", ItemValue=1}, 
                    new SampleDataSourceItem{ItemName="Item2", ItemValue=2}, 
                    new SampleDataSourceItem{ItemName="Item3", ItemValue=3}, 
                    new SampleDataSourceItem{ItemName="Item4", ItemValue=4}, 
                    new SampleDataSourceItem{ItemName="Item5", ItemValue=5} 
                }; 
        } 
 I am creating the report using the second constructor and pass the value for someVariable value. But when I debug the code at rendering time, i see that my instance variable does not hold the value I set. The report object is being created again using parameterless constructor by the rendering engine. This happens only when the sessionState is not "InProc".
This problem has come with SP2. We have lots of reports already designed and cannot find any workarounds. When will we have a SP that completely solves this session state problem???

--ilker
Rossen Hristov
Telerik team
 answered on 29 Dec 2008
1 answer
1.2K+ views
Hi,
I like your controls and your web site is great. I am exploring Reporting tools options. We have used ActiveReports and know the product well. However, I  want to understand what other options are out there as well and Telerik seems to be pretty much everwhere! :-)

My questions are:
How do you compare yourself with ActiveReports and DevExpress Reporting?
- ActiveReports is a pretty mature product and looks like it is still the number one selling Reporting tool on major sites.
- Looks like DevExpress has a pretty good set of features at a lower price. Will you be adding similar features as well?
What is your reporting vision compared to these companies?
Will you keep adding features to the Reporting product or will you come out with new editions with different feature sets?

Thanks!

Dev
Rossen Hristov
Telerik team
 answered on 23 Dec 2008
1 answer
171 views
Hello,

I need to translate many textbox controls on my reports. I'm using, like you suggest in help, a lot of functions to do that work. For example:

Translate_Customer("en"), to translate value to English
Translate_Customer("fr"), to translate value to French
etc.

This works fine, but I don't think this is the best way to do this work! I need to translate many textboxes in a lot ot reports and I've tried to create a public class with all the translations that I need. Then, I use that class in the report code. When I run the report in my windows applicattion I always get the following error:

"#ERROR# The expression contains undefined function call Translate_Customer"

Please, can you suggest me how to solve my problem?

Thank You
LM





Steve
Telerik team
 answered on 19 Dec 2008
7 answers
435 views
Hello,
we are evaluating the Telerik-Report-Control. In our Website we want to Export a Report in PDF-Format. The Users are only allowed to export in PDF.

In de ExportGroup-Combox there are different Export-Types. Is it possible to configurate these items? That only the PDF-Export is available?

Thx a lot for your help!

Bruno



intrasoft
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
129 views

Hello,

I have a dataset with two datables and a relationship between them. I need to be able to generate reports entirely programatically because our reporting structure is purely dynamic and a user can choose columns, grouping, sorting etc at runtime.

Can you please provide me with code that will create a heirarchy report entirely programatically and for each detail record in Datable 1, have a sub report with records from datatable 2.

Can you also show me in the code how to add a column as the Grouping column.

 

Can you also show me how to style the report

 

Thanks,

Andy

Steve
Telerik team
 answered on 19 Dec 2008
1 answer
139 views
Hi,
I'm trying to change the default x-axis label on a bar chart that I have in my report. I'm trying to do it in the code behind (C#). At the moment the label is defaulting to the row number from my dataset, I wan't it to be the value in one of my columns.
I have created an SQLAdapter on the desing page and then in the code behind I pass ain a parameter, create my dataset and then fill it with the adapter. A
I've tried creating a Telerik.Reporting.Charting.AxisLabel and then adding it to my chart but i get read only errors. I've also tried 

 

Telerik.Reporting.Processing.

Chart myChart = (Telerik.Reporting.Processing.Chart)sender; in my needdatasource event, then doing myChart.PlotArea....... but again I've had no success!
I've been using telerik asp.net controls for a while but I'm new to reporting and I'm finding it a bit tricky - any pointers would be greatly appreciated.
Cheers,
Johnny

 

Johnny McAvoy
Top achievements
Rank 1
 answered on 19 Dec 2008
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?