Posted 18 May 2018, 6:49 am EST
I have a WebViewer on my page and the default ViewerType is AcrobatReader. The page shows the contents fine. I have an option on the screen that allows the user to switch to HTML Viewer if needed. Once selected, the system postbacks the page, changes the ViewerType and then I receive the below error.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If reportType.Value = "" Then
WebViewer1.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.AcrobatReader
aReportType.InnerText = "HTML Viewer"
Else
WebViewer1.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.HtmlViewer
aReportType.InnerText = "Acrobat Reader"
End If
mobjDatabase.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("iAnalyzeConnectionString")
mobjDatabase.subOpenConnection()
setJobDetailInformation()
subSetDistributionPattern()
loadDetails()
subCloseConnections()
End Sub
error: Failed to send request to /IO_Direct_2010/ActiveReports.ReportService.asmx/GetReportProperty - Forbidden.