Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

XL.LoadBook

Loads a Excel file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XL 2.9 Yes Yes Yes Yes Yes

MBS( "XL.LoadBook"; Data; Type )

Parameters

Parameter Description Example value
Data Either text with file path or container value which contains the Excel file data. "C:\test\test.xls"
Type Which type of file this is. Pass 0 for unknown, 1 to try xml format and 2 to try binary format. 0

Result

Returns book reference number on success.

Description

Loads a Excel file.
Works with both XML based xlsx files and older xls files.
Book reference numbers are starting at 19000 and counting up for each new book.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.

See also

Example Databases


XL.IsInitialized   -   XL.NewBook

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins