MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to show a PDF file to the user in a Web Application?
Feedback.

Answer: You can use a WebHTMLViewer control and load the
Example:
dim CurrentFile as WebFile // a property of the WebPage

// define the PDF file
CurrentFile = new WebFile
CurrentFile.Filename = "test.pdf"
CurrentFile.MIMEType = "application/pdf"
CurrentFile.Data = "some pdf data" // MyDynaPDF.GetBuffer

// load into html viewer
HTMLViewer1.URL = CurrentFile.URL
Notes:
See our Create PDF example for the Real Studio Web Edition.
http://www.monkeybreadsoftware.de/realbasic/webapps.shtml




Links
MBS Real Studio Plugins