ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
  • Displaying a PDF file in server code
  • Displaying a PDF file in browser code
FileDisplay (Example)
Displaying a PDF file in server code
WEBDEV - Server code This code is used to display the MyFile.pdf file found in the _WEB directory of the current site. This code must be called from a "SUBMIT" button.
sFile is string
sFile = fWebDir() + "\MyFile.pdf"
FileDisplay(sFile, "application/pdf")
Displaying a PDF file in browser code
WEBDEV - Browser code This code is used to display the MyFile.pdf file found in the _WEB directory of the current site. This code must be called from a button with no server action (Operation on controls = "None")
sFile is string
sFile = FolderWeb() + "/MyFile.pdf"
FileDisplay(sFile)
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help