Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I installed CRforVS_13_0_19 (V13.0.9.2312) to VS 2015 Community and I encounter the following issues during run time.

The report content does not show when it is loaded.

I create a very simple crystal report by adding text objects at every section in the report. Preview directly from the report during design time and everything comes out fine.

When I publish it to IIS 10 to browse the report, I can only see report viewer with empty content in main report. However, If I click on crystalreport's viewer refresh button, next page or change the zoom factor, the report content will show up.

Here is the code at page load
Dim reportdocument As New ReportDocument()
ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"))
CrystalReportViewer1.BestFitPage = True
CrystalReportViewer1.PDFOneClickPrinting = False
CrystalReportViewer1.HasSearchButton = False
CrystalReportViewer1.HasRefreshButton = True
CrystalReportViewer1.ReportSource = reportdocument
CrystalReportViewer1.RefreshReport()


Also, I notice if I debug the webform from VS, I can't even see crystalreportviwer at all. I was told it does not support IIS express, wondering is it true?

This test project is .Net 4.5.2

Can anyone help?

What I have tried:

I had tried to force refresh, go next page or zoom the report during viewer load but no luck.

Private Sub CrystalReportViewer1_Load(sender As Object, e As EventArgs) Handles CrystalReportViewer1.Load
       CrystalReportViewer1.RefreshReport()
       CrystalReportViewer1.Zoom(100%)
   End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900