PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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