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

Report not visible after adding DataSource

4 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomaž Lovrec
Top achievements
Rank 1
Tomaž Lovrec asked on 05 Oct 2009, 11:27 AM
Hello,

I have a slight problem. I've created a new report, with the datasource, simple select statement, some text and went to preview, nothing's there, except pageHeader, reportHeader and pageFooter. But if I remove the DataSet from the report(in Properties), then all the text appears visible. Where have I gone wrong? I've tried a whole bunch of stuff and nothing returned results.

Kind regards,
Thomas

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Oct 2009, 01:40 PM
Hi Tomaž Lovrec,

We're afraid that your explanation does not help us identify what is wrong as we're not sure what you're doing. Please explain how do you bind your report  - used the Report Wizard, set the DataSource manually through the designer, set it in the report constructor or in the NeedDataSource event? Any additional information or a sample report would be highly appreciated. Also we recommend reviewing Connecting Data to a Report help section for info on supported datasources and how to bind the report.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tomaž Lovrec
Top achievements
Rank 1
answered on 05 Oct 2009, 07:07 PM
Sorry for such bad information, I was kinda in a hurry.
To explain a little bit more what I'm doing.
I create a new project in VS2008. Add a new item(Telerik Reporting Q2) through the Solution Explorer, and use the wizzard through on.
There I make a connection to the database, create a dataset and a simple query through the Query builder(a simple query, like select * from table, the query is correct and it works), further on, I choose my desired style, position of the data etc. and complete the report making wizzard. After it completes, I fire off the Preview of the new report, and there is nothing there, except the headers and the footer, it doesn't even show labelsGroupHeader. But if I take out the DataSource from the report Properties, stuff starts showing up(without the data from the database). I've also tried to create a new Report through the wizzard without the DataSource and then manually add the DataSource Through Designer, and the stuff is the same. I've even thought it has something to do with the SQL query, so I tried using a SQL query I've used in a previous report, which was working. No dice.

One thing did come up to me right now, I'm still using the Trial version of Telerik Reporting, does the trial version have any limitations as how many reports you can create with it?
0
Steve
Telerik team
answered on 06 Oct 2009, 07:42 AM
Hello Tomaž,

Are you adding the report directly into a web site project by any chance? Note that according to our best practices, you should create a separate class library to hold the reports and reference it in your actual project. Preview would not work when the report is in a web site, due to limitations of these types of projects.
I've attached a sample project using the above suggestions that is bound to a table from the AdventureWorks database. You should change the connectionString only and run it on your end.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tomaž Lovrec
Top achievements
Rank 1
answered on 06 Oct 2009, 09:55 AM
Hello,

thanks for your response. I did add it directly to the web project, and now when I tried creating a new class lib it works. Thanks again.

Kind regards,
Thomas
Tags
General Discussions
Asked by
Tomaž Lovrec
Top achievements
Rank 1
Answers by
Steve
Telerik team
Tomaž Lovrec
Top achievements
Rank 1
Share this question
or