|
|
|
|
|
FileView (Function) In french: FileView
Not available
Launches file display in browser. The file is downloaded to a temporary directory in the browser, then displayed in the viewer dedicated to the file type. If visualization cannot be launched (file type not supported), the file is downloaded directly to the browser's default download directory. OR sFile = fTempFile()
FileView(sFile, "Report" + DateSys() + ".pdf", mimeTypePDF)
fDelete(sFile)
Syntax
FileView(<File to download> [, <New File Name> [, <MIME type>]])
<File to download>: Character string Name of the file (present on the server) to be sent and displayed on the client workstation. <New File Name>: Optional character string Name under which the file will be offered for saving on the client workstation. If this parameter is missing or is an empty string (""), the file name on the server will be used. This name will also be proposed by default to the user if he saves the file on his workstation. <MIME type>: Optional character string MIME type of the file. This value will be used by the client workstation to determine how to display the file. If this value is missing, the value returned by function fMIMEType (with the file name) will be used. The possible values are: - Name of MIME type to use. The MIME type is used to indicate to the browser the type of file that must be handled. Hundreds of types are defined in the MIME communication standard (available on the Internet). The most common values recognized by most browsers are:
- "text/html": HTML page (*.htm, *.html)
- "text/plain": text file (*.txt)
- "application/pdf": PDF file (*.pdf)
- "image/gif": GIF image (*.gif)
- "image/jpeg": JPEG image (*.jpg, *.jpeg)
- "video/mpeg": MPEG video (*.mpg, *.mpeg)
- "application/msword": displays a Word file.
- "application/vnd.ms-excel": displays an Excel file.
- MIME type corresponding to one of the following constants:
| | mimeTypeXMLApplication | XML content. | mimeTypeBinary | Binary content (byte stream). | mimeTypeDOC | Word file (*.doc) | mimeTypeDOCX | Word file (*.docx) | mimeTypeGIF | GIF image (*.gif) | mimeTypeHTML | HTML page (*.htm, *.html) | mimeTypeJPEG | JPEG image (*.jpg, *.jpeg) | mimeTypeJSON | JSON content. | mimeTypePDF | PDF document (*.pdf) | mimeTypePNG | JPEG image (*.png) | mimeTypeSOAP | SOAP content in XML format. | mimeTypeText | Text (*.txt) | mimeTypeXMLText | XML text | mimeTypeXLS | Excel file (*.xls) | mimeTypeXLSX | Excel file (*.xlsx) | mimeTypeZIP | ZIP file (*.zip) |
Business / UI classification: UI Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|