Reporting says 'No page to display.'

0 Answers 269 Views
.NET Framework Report Designer (standalone) Report Viewer - MVC
anon
Top achievements
Rank 1
Iron
anon asked on 16 Jul 2021, 12:50 PM

Hi all, I can preview my report in Telerik Report Designer tool, but when I integrate and run the MVC project in Visual Studio, it says "no page to display"... There are no error messages.

Any help would be appreciated,

Thanks!

Neli
Telerik team
commented on 16 Jul 2021, 03:07 PM

I am sorry to hear that you are experiencing issues with our product.

I would suggest setting the SkipBlankPages property of the report to False. In this way, you will be able to see the actual error.

Let me know when you have any updates.

anon
Top achievements
Rank 1
Iron
commented on 19 Jul 2021, 05:16 AM | edited

Where do I put that property? I tried the controller telerik created when I make a new telerik report in VS, in "ReportServiceConfiguration" but it says it doesnt contain definition for skipblankpages.

edit: ok its in the editor.
anon
Top achievements
Rank 1
Iron
commented on 19 Jul 2021, 05:33 AM

edit2: so the error was "Unable to establish a connection to the database. Please verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application" and I found the solution is to make the name of the db connection same as the one in my webconfig.

Thanks!
Neli
Telerik team
commented on 19 Jul 2021, 02:30 PM

Thank you for the update.

Such an error indicates that the connection string is missing in the configuration file (for .NET Framework applications web.config or app.config) of the application or it is wrong. An example is:

<connectionStrings>
	<add name="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString"
			connectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=SSPI"
			providerName="System.Data.SqlClient" />
</connectionStrings>

Please, make sure that you have added it and it is correct.

No answers yet. Maybe you can help?

Tags
.NET Framework Report Designer (standalone) Report Viewer - MVC
Asked by
anon
Top achievements
Rank 1
Iron
Share this question
or