Var f As FolderItem = SpecialFolder.SharedDocuments.child("test.pdf")
DocViewer.LoadURL(f.URLPath)
Label4.Text = f.AbsolutePath
DocViewer is an DesktopHTMLViewer on desktop app and a WebHTMLViewer on web app version. In other version label4 display the same file url : Macintosh HD:Users:Shared:test.pdf
This file exist and it’s present in the desktop app but not on the web app …
Var f As FolderItem = SpecialFolder.SharedDocuments.child("test.pdf")
Var webf as WebFile = WebFile.Open(f) //Might need to define webf as a property of the WebPage
DocViewer.LoadURL(webf.URL)
Var f As FolderItem = SpecialFolder.SharedDocuments.child("test.pdf")
webf = WebFile.Open(f)
webf.ForceDownload = False
DocViewer.LoadURL(webf.URL)
Label4.Text =webf.URL
My test file is not displayed on the htmlviewer, it still downloaded by this line
Var f As FolderItem = SpecialFolder.SharedDocuments.child("test.pdf")
webf = WebFile.Open(f)
webf.MIMEType = "application/pdf"
DocViewer.LoadURL(webf.URL)
Label4.Text =webf.URL