I use this method code to load a pdf and show it into an htmlViewer:
if PdfFile.Exists Then
PreviewFile = WebFile.Open(PdfFile)
PreviewFile.MIMEType = "application/pdf"
PreviewFile.UseCompression = False
HVPreview.URL = PreviewFile.URL
End If
It works fine, but some time I’ve got this error:
In webapp error.log I found this:
JavaScript Error:
Error: Could not execute returned javascript: Cannot read property 'children' of null
Source: document.getElementById('JksPgQwS').children[0].src = "/17AA9EB4F3D5D80935E17EFF30158C449CDDC7A9/files/4881-2410-4886-0669-5337/tmpdoc__4rb0tazv4.PDF";
User Details:
Any idea?