This is a migrated thread and some comments may be shown as answers.

SubReport Sample VB

5 Answers 319 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Howard Rybko
Top achievements
Rank 1
Howard Rybko asked on 11 Oct 2007, 04:50 PM
Hi
Pls could I urgently get a link to a VB sample like the Orders sample with sub reports in C#.

Getting SubReports to work is no easy task!

Thank you
Howard
Syncrony.com

5 Answers, 1 is accepted

Sort by
0
Vassil Petev
Telerik team
answered on 11 Oct 2007, 04:59 PM
Hi Howard Rybko,

Thank you for the question.

All our examples come in C# and VB.NET. All you need to do is go to the Start Menu --> Programs --> Telerik --> Reporting Q2 2007 --> VS2005 Examples --> VB solution.

Additionally, you can review the provided documentation for more information on subreports.

Let me know if you have other questions.


Kind regards,
Rob
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Howard Rybko
Top achievements
Rank 1
answered on 11 Oct 2007, 06:34 PM
OK Rob

Just imagine ... that you been working with Telerik controls for the past 2 years. And imagine that you have spent the spent the whole day looking for a solution to this SubReport problem on the site and on the distribution and then some smart guy tells you to: Start Menu --> Programs --> Telerik --> Reporting Q2 2007 --> VS2005 Examples --> VB solution

So cool - maybe you can point out which subreport needdatasource example that i sould use that looks like this:

        private void OrderDiscountSubreport_NeedDataSource(object sender, System.EventArgs e)  
        {  
            Telerik.Reporting.Processing.SubReport subReport = sender as Telerik.Reporting.Processing.SubReport;  
            ifnull != subReport)  
            {  
                OrderDiscountReport orderDiscountReport = subReport.Report.ItemDefinition as OrderDiscountReport;  
                ifnull != orderDiscountReport)  
                {  
                    orderDiscountReport.SetFilter(OrderID);  
 
                }  
            }  
        } 

The only example i can find with needsdatasource is the one for charts in ProductLineSales. And I've looked on line as well. Sorry if I am not so smart or ive missed something in your documentation ....

Howard
0
Svetoslav
Telerik team
answered on 12 Oct 2007, 12:13 PM
Hello Howard Rybko,

The Product Line Sales example you have found is the right example to look into. It illustrates the preferred way to use a sub report that is in relation with the master report. It utilizes report parameters and filter of the sub report level.

The other approach that seems you have found too is handling the SubReport.NeedDataSource event. Here is a link to the Telerik Reporting online help documentation regarding this event.

Please let me know if I can be of any further assistance. Thank you.

Greetings,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Howard Rybko
Top achievements
Rank 1
answered on 14 Oct 2007, 08:50 AM
No that does not help me.

I am getting annoyed and upset. What is the support fee I paid for helping me when I ask a simple question and I get TWICE the same response.

PLEASE PLEASE PLEASE can someone point me to a working VB SAMPLE OF A SUBREPORT. (Not a chart example)
 
One that works in the same way as the C# example I found and posted above.
0
Chavdar
Telerik team
answered on 15 Oct 2007, 12:12 PM
Hi Howard,

I'm attaching you a sample solution based on the Orders example which demonstrates the usage of the NeedDataSource event in VB.NET. By default it is configured to use (local)\SQLExpress SQL Server so you may need to adjust it according to your settings.

Note, that the NeedDataSource event is fired only if the DataSource property of the report(subreport) is not set.

Let me know if you need further assistance.

Sincerely yours,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Howard Rybko
Top achievements
Rank 1
Answers by
Vassil Petev
Telerik team
Howard Rybko
Top achievements
Rank 1
Svetoslav
Telerik team
Chavdar
Telerik team
Share this question
or