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

Web Reporting Setup?

9 Answers 293 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 10 May 2007, 07:58 PM
Can someone provide me with some simple instructions on how to get started with reporting in a web form?  I can't find any instructions or documentation on how to add a new report to an existing web project.

TIA,
Chris

9 Answers, 1 is accepted

Sort by
0
surfer
Top achievements
Rank 1
answered on 10 May 2007, 10:35 PM
There two steps involved in this

1) Create a report - in your Web Application, right click in the root in your Solution Explorer and select "Add New" - you should be able to see the "Telerik Report" item type.

After finishing with the report design (you can follow the steps from this Help 2 article)

ms-help://telerik.reporting/Reporting/QuickStartCreatingASimpleReport.html

2) Drag and Drop a ReportViewer controls to your ASPX surface. ReportViewer should be available in the Telerik Reporting tab in the ToolBox (you should have this automatically placed if you have installed the Telerik Reporting package to your machine).

Drag the ReportViewer control from the Toolbox to a Web form.
If you need any additional renderers, you will need to copy them to your project's bin folder.


The screenshot above shows a ReportViewer control embedded on a Web Form.

To run the Report Viewer, you should create a report and assign it to the ReportViewer.Report property:

this.ReportViewer1.Report =  (Telerik.Reporting.Report)new Report1();

This is available in the following Help 2 topic:

ms-help://telerik.reporting/Reporting/AspNetReportViewerEmbedding.html

HTH,
Cheers,
Matt

0
Chris
Top achievements
Rank 1
answered on 11 May 2007, 04:54 PM
With Step 1, when I add the Telerik Report item to my solution, I don't get the option "View Designer" when I right click on the Report.vb file that I just added.  Any ideas?

I've already tried reinstalling reporting a couple of times.

EDIT: I just created a new project stored on my local computer (versus a remote server) and I was able to access the option "View Designer" on the report file.  This is a huge problem.  I looking for a workaround.

Chris
0
Chavdar
Telerik team
answered on 11 May 2007, 05:29 PM
Hi Chris,

In order to be able to design a report in a Web Site you should add it to the special App_Code folder. If your project does not already have this folder then you can add it by right-clicking the Web Site in the Solution Explorer and choose "Add ASP.NET Folder" -> "App_Code". I suppose that most likely this is the problem.

However, If you are using a Web Project instead of Web Site then you should wait for a while to allow VS2005 load the report designer and show "View Designer" in the context menu.

Kind regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 11 May 2007, 06:04 PM
Here are the steps I took to get it all to work:
  1. Create a Web Site
  2. Right-click on the root of your new solution under the Solution Explorer and click Add New Item...
  3. Select Telerik Report from the list, give it a filename, and click Add.
  4. Visual Studio will ask you if it should put the new file (class file) in the App_Code directory.  Click OK.  It will create the App_Code directory if it doesn't exist and add your new telerik report file to it as well.
  5. Wait 10-15 seconds....
  6. Now you can right-click on the telerik report file you added in steps 2-4 and select View Designer from the context menu.

Chris
0
Chavdar
Telerik team
answered on 14 May 2007, 04:15 PM
Hi Chris,

Thanks for the detailed instructions. I tried to reproduce the problem but without any success.

After adding the Telerik Report item to the App_Code folder you should have two assembly references in the web.config file.  They are as follows:

<assemblies>
                <add assembly="Telerik.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
                <add assembly="Telerik.Reporting.Processing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
</assemblies>


This is the only prerequisite to see the "View Designer" item from the context menu and these references are added automatically by VS2005. Could you check whether these references are entered correctly at your side and whether the problem still persists if they are present?

Thanks in advance.

 
All the best,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 14 May 2007, 04:41 PM
Chavdar,

They are entered correctly and I found where I was in error.  I was not waiting long enough as you mentioned in a previous post for the report designer to finish loading and the View Designer menu option to appear.  It took a good 15 seconds or more for Visual Studio to do all that loading.  I have modified the steps in my previous post to reflect that change.

I have another question about loading reports, but I'll start a new thread for it.

Thanks for your help Chavdar.

Chris
0
Chavdar
Telerik team
answered on 15 May 2007, 10:46 AM
You are welcome, Chris. It's great to know that everything is working as expected now.

 
Sincerely yours,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
darren
Top achievements
Rank 1
answered on 28 Jun 2008, 05:05 AM

Chris,
I tried to follow your instruction but when i come to step 3, i don't see a 'Telerik Report' on the list.  Please advise.
Thanks.

    1. Create a Web Site
    2. Right-click on the root of your new solution under the Solution Explorer and click Add New Item...
    3. Select Telerik Report from the list, give it a filename, and click Add.
0
Steve
Telerik team
answered on 01 Jul 2008, 08:19 AM
Hi Darren,

The Reporting template is missing in WebSites in Q1 which is a problem we have addressed in the Q1 SP1 release. Either install the service pack or manually add the reporting template as explained in this forum thread.

Regards,
Steve
the Telerik team

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