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

Reporting Preview not working.

5 Answers 525 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 27 Aug 2009, 09:01 PM
I installed the reporting software. I created a new web project, added a new report, went through the wizard to create the new report. The designer was able to setup the report with my new fields and eveything looked good but when I choose Preview... I see nothing but page 1 of 1 of nothing.

I checked the dataset data preview and it brings back records but I cant seem to get this simple report to preview.  Any idea of what I may be missing here?

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Aug 2009, 07:15 AM
Hello Robert,

Are you following our best practices and adding the reports in a separate class library that is later references by your web app/site? Note that preview would not work for website project. If this is not the case, please check whether you have Fill() method added in the report constructor and debug to see what it returns. Also if you change the connectionString in runtime, preview would not work.

Sincerely yours,
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
Robert
Top achievements
Rank 1
answered on 28 Aug 2009, 01:27 PM
Thanks for your insight.

So if I take this approach, how do I handle getting the connection strings within my Class Library with respect to the Web.config of my project?

R
0
Accepted
Steve
Telerik team
answered on 28 Aug 2009, 02:09 PM
Hello Robert Gayo,

You should copy the corresponding connection string entries from the class library's config file to your application's config file. More information on the matter is available in this KB article: Using connectionStrings from configuration file.

All the best,
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
Robert
Top achievements
Rank 1
answered on 28 Aug 2009, 04:30 PM
I still cannot figure out how to create a sqldatasource in the class library using the connection string defined in either app.config or the settings file.

What am I missing?
0
Robert
Top achievements
Rank 1
answered on 28 Aug 2009, 06:36 PM
Scratch that..  I figured out what I was doing wrong.
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Steve
Telerik team
Robert
Top achievements
Rank 1
Share this question
or