I know this question was topic a few times. I read all the threads Google could find but must still be doing something stupid.
In a Web app (development on Mac), I use a CopyFiles Build Step to move a PDF file into the resources folder.
I placed a WebHTMLViewer on a WebPage that is supposed to display without a session.
The Viewers Shown event goes like
Dim webfile As New WebFile
Dim f As FolderItem
f = app.ExecutableFile.Parent.Child("Resources").Child("Handbuch TDPortal.pdf")
webfile.Session = Nil
webfile.MIMEType = "application/pdf"
webfile = webfile.Open(f)
Me.URL= webfile.URL
The file is found, it exists and it is readable.
The result of the HTMLViewer is always
[quote=387810:@Mariano Poli]Nor with or without the ’ is possible to view the PDF.
In the following link you could see the project in order to see if I am doing something wrong: https://www.dropbox.com/s/5rkz9xzzsnm1v3r/myShowPDF_GDrive.xojo_binary_project?dl=0[/quote]
First, you should use the Action event of a button
Try adding &embedded=true at the end of the URL string. But the URL seems to point to an HTML page?