Posted 15 May 2018, 1:52 am EST
As the title suggests, implementing the following code with a webviewer (viewertype = htmlviewer) with the following code pattern causes the evaluation message to appear.
I can get the message to disappear by declaring the PageReport variable without ‘using’, I was trying this approach to cope with a separate memory issue (unsuccessfully). This isn’t an urgent issue for me as I probably won’t end up using this code in the future but I thought I’d share here in case anyone else ran into this problem
Using rdlReport As New PageReport()
Try
setReportMarkup(rdlReport, "pt", "portrait")
rdlReport.Report.DataSources.Add(myDataSource())
rdlReport.Report.DataSets.Add(myDataSet())
rdlReport.Document.Printer.PrinterName = String.Empty
rdlReport.Run()
WebViewer.RenderMode = GrapeCity.ActiveReports.Web.RenderMode.Paginated
WebViewer.ViewerType = Web.ViewerType.HtmlViewer
WebViewer.SlidingExpirationInterval = New TimeSpan(0, 0, 30)
WebViewer.Report = rdlReport
Catch ex As Exception
Dim x As String = ""
End Try
End Using