openSpreadsheet method

This method opens a spreadsheet.

Defined in

Spreadsheets

Syntax

public Spreadsheet openSpreadsheet(String fileName, boolean visible) throws SymphonyException

Parameters

String fileName

Specifies the name of the spreadsheet to be opened. For example, on Microsoft® Windows®, the format is D:\\test.ods . On Linux®, the format is /home/me/test.ods. If the spreadsheet does not exist or is an unsupported file type, this method throws an exception.

boolean visible

Specifies true to open the spreadsheet in a visible window or tab, or false to open the spreadsheet invisibly.

Return Value

spreadsheet

A Spreadsheet object that represents the opened spreadsheet.

Usage

This method can open .ods, .ots, .xls, and .csv files.

See examples

Example: openSpreadsheet method