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

Web reports not creating tableadaptor

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 23 Feb 2009, 07:09 AM
Hi,

I am testing the evaluation version of Telerik Reporting and I have a problem with creating report in a web sulution. I am using VS2008 standard and if i create a report in a windows project all works fine, when creating in a web project an using the report wizard the dataset is created but the tableadaptor is not linked to the report.

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 02:16 PM
Hi Dave,

Thank you for your interest in Telerik Reporting.
The problem you describe is pretty strange and it has not been reported or encountered by us so far. When you use the report wizard to bind your report, it would create the dataset and "link" it to your report with the following code in the Report constructor:

try
{
this.YourDataSetTableAdapter.Fill(this.YourDataSet.YourDataSetTable);
}
catch (System.Exception ex)
{
// An error has occurred while filling the data set. Please check the exception for more information.
System.Diagnostics.Debug.WriteLine(ex.Message);
}


and of course the dataset/tableadapter would be declared/initialized and set as datasource for the report in the InitializeComponent() method. Please check if you have those at place and verify what could be missing.
Generally you should be able to see the available tableadapters in your toolbox under a tab <yourclasslibrary components>, so you can drag & drop it on your report designer to re-add it.

Anyway, this is a problem and should not be happening. Our advise is to try creating the report again with the report wizard (it would be best if you try this on a new report) and if the same issue occurs, please note the steps to reproduce and let us know, so we can investigate what is going on.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dave
Top achievements
Rank 1
answered on 24 Feb 2009, 08:36 PM
Hi Steve,

I have resloved the problem, I suspect It was down to an error on my part. After reading a few similar topics on the forum I decided to try and create the reports in a class library, this was far less painful than i thought.

In fact I can now see why you suggest this method once you start building a few reports it make sense.

Many Thanks

Dave Johnson
Tags
General Discussions
Asked by
Dave
Top achievements
Rank 1
Answers by
Steve
Telerik team
Dave
Top achievements
Rank 1
Share this question
or