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

Parameters Report

5 Answers 184 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 05 Dec 2007, 10:23 AM
Hi There,

Can you tell me where I can get the source code for:
Telerik Reporting - Design Time Support for Parame

The video shows some code that is pasted in by the presenter and I cannot replicate it.

My License includes the source code element.

Thanks,

Steve Wilson.

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Dec 2007, 02:19 PM
Hi Steve,

Thank you for contacting Telerik Support.

The "Source Code" that you receive with your license is the actual source code of the Telerik Reporting software product and of course the accompanying samples. The sample Report that was created in the movie is just an example of the product's capabilities and not a part of the product itself.

The purpose of the movie is to follow it step by step in order to learn how to achieve the desired functionality. If you have trouble reproducing the code that the presenter enters (you can pause the movie whenever you need to), specify what parts of the movie were unclear and we will try to help you.

To have all projects that were created during the filming of a movie available for download is a great idea and we will try to provide them in the future.

Best wishes,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 07 Dec 2007, 03:14 PM
Hi There,

Had a go at this but I am falling over converting the C# code to VB.
I have tried the converters but the converted VB code still causes errors.
Can you tell me the correct VB code for this C# code:

Public Form1()
{
   initializeComponent();
   reportViewer1.Report = new Report1();
}


private void btnrun_click(object sender, eventargs e)
{
   (reportViewer1.Report as Report1).Param1 = tbparam1.text;
    reportViewer1.RefreshReport();
}

This is for a webform not a winform so I know that public form1() is not right but this is not causing the errors it's the other code.

Thanks for your help,

Steve Wilson.

0
Chavdar
Telerik team
answered on 07 Dec 2007, 04:14 PM
Hi Steve,

Fortunately we have found an example with source code which shows the same functionality as in the sample video but for WebForms. Find it attached and give it a try.

Let us know if you have any other questions.

Best wishes,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 12 Dec 2007, 05:05 PM
Hi Chavdar,
Thanks for the reply.
I have managed to get things working, sort of.
I am having trouble with the data explorer. It keeps saying there is no datasource. I have followed the video tutorial to the letter. The webreportparams zip file you sent does not allow me to compile and run. There are too many errors. Things like Telerik.Reporting.DetailSection is not defined, Telerik.Reporting.Drawing (namespace or type specified in the imports Telerik.Reporting.Drawing doesn't contain any public member or cannot be found) etc etc 
Can you tell me, If I create more than 1 report should they each be in their own class. I.E. in the video a class called MyReportLib is created if another report was added to the application would it go into the MyReportLib.vb or a new one.

Thanks for your help.

Best Regards,

Steve Wilson.
0
Chavdar
Telerik team
answered on 13 Dec 2007, 01:36 PM
Hi Steve,

We are sorry for the caused trouble. The sample solution was referencing an older version of Telerik Reporting. The solution is attached again with fixed references to the latest Reporting version (1.5.1).

The Data Explorer will show the available fields only if you have a properly set DataSource property of the report. Please, check whether it is correctly specified and let us know if there is still a problem.

Each Telerik report is a separate class file. In one class library (such as MyReportLib) you can add multiple Telerik reports through the Add | New Item... | Telerik Report 1.5.

Hope this information helps. Let me know if you have any other questions.

Best wishes,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Steve
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or