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

HTML5 Report Viewer with TypeReportSource is blank

8 Answers 257 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 17 Oct 2016, 11:39 PM

I am trying to use the HTML5 viewer with the following MVC code. 

@(Html.TelerikReporting().ReportViewer()

           .Id("reportViewer1")
           .ServiceUrl("/api/reports")
           .TemplateUrl("/TelerikReports/Html5/ReportViewer/templates/telerikReportViewerTemplate-9.1.15.731.html")
           .ReportSource(new TypeReportSource() { TypeName = "MyApp.TelerikReports.MonthlySales, MyApp.Reports" })            
           .ViewMode(ViewMode.Interactive)
           .ScaleMode(ScaleMode.Specific)
           .Scale(1.0)
           .PersistSession(false)
           .Deferred()
    )

 

I don't get any errors but the viewer renders as totally blank, no HTML is generated. What is most likely reason for this?

 

8 Answers, 1 is accepted

Sort by
0
Craig
Top achievements
Rank 1
answered on 19 Oct 2016, 05:28 AM

I found a StackOverflow question with exactly the same problem, but no answer.

http://stackoverflow.com/questions/34132095/telerik-reporting-with-asp-net-mvc-report-viewer-is-not-correctly-rendered

 

0
Peter
Telerik team
answered on 19 Oct 2016, 08:32 AM
Hi Craig,

Most probably there is a hidden error. Thus my suggestion is to check the requests with tool like Fiddler.

Give it a try and if you need additional assistance please send us the Fiddler log.

Regards,
Peter
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Craig
Top achievements
Rank 1
answered on 19 Oct 2016, 09:08 AM
I did try that and didn't see any errors. In fact it didn't even make any server requests at all.
0
Peter
Telerik team
answered on 19 Oct 2016, 11:07 AM
Hi Craig,

How did you add the viewer? Did you use the dedicated item template as elaborated in  How To: Use HTML5 ASP.NET MVC Report Viewer in an application help article?

Check out the Manual Setup help article to make sure that your project and viewer page are correctly configured.

The demos that came with the Telerik Reporting installation have a running MVC demo, consider examining it.
 
Regards,
Peter
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Craig
Top achievements
Rank 1
answered on 19 Oct 2016, 11:55 AM
I have just started using the Javascript version directly and it seems to work now. problem now is the styling is broken on the preview, see attachment. 
0
Peter
Telerik team
answered on 19 Oct 2016, 03:03 PM
Hi Craig,

This looks like a missing CSS. Which version of Telerik Reporting you utilize? Currently all the CSS dependencies are served as resources by the REST service. Thus consider checking the requests with Fiddler.

Regards,
Peter
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Craig
Top achievements
Rank 1
answered on 19 Oct 2016, 07:41 PM
Looking in Fiddler no CSS resources are served. What should I be looking for and what could cause them not to be served?
0
Craig
Top achievements
Rank 1
answered on 19 Oct 2016, 10:05 PM

I manually included all the resources and font awesome and it seems to work now.

 

Tags
General Discussions
Asked by
Craig
Top achievements
Rank 1
Answers by
Craig
Top achievements
Rank 1
Peter
Telerik team
Share this question
or