StaOpenFile is used to open a specified file in Statistica. Statistica provides the ability to open documents as either a report, workbook, spreadsheet, graphs, or macro. For example, to open a spreadsheet, simply call:

Programming Language


Visual Basic

'assuming "App" is an instance of Statistica
App.Spreadsheets.Open("C:\Data\LabData.sta", True)


'assuming "pApp" is a pointer to an instance of STATISTICA
"C:\Data\LabData.sta", true);

See also Migrating from StaDev to Statistica's COM architecture for a comprehensive list of all StaDev32 functions that can be migrated to Statistica's COM library.