GetFileContent method: PSSpreadsheet class
Syntax
GetFileContent(filename)
Description
Use the GetFileContent method to read the Excel workbook file content.
Parameters
| Parameter | Description |
|---|---|
|
filename |
Specifies a string representing the name of the Excel workbook file from which you want to read the data. |
Returns
(Optional) A Boolean value: True if the method completes successfully, False otherwise.
Example
The following example gets the content of the specified Excel workbook file.
&filename = "filedata.xlsx";
&ssObject.GetFileContent(&filename);