Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to have a PDF downloaded to the user in a web application?
Answer: You can use a WebHTMLViewer control and load the PDF file with the PDF plugin from the browser.
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
CurrentFile.ForceDownload = true

// start the download
Notes: See our Create PDF example for the Xojo Web Edition.

Feedback, Comments & Corrections

The biggest plugin in space...

MBS Xojo Plugins