StaCreateFile

StaCreateFile is used to create a spreadsheet and save it to a file. To emulate this function through Statistica's COM library, you must first create a spreadsheet and then save it.  For example:  

Programming Language Example
Visual Basic 'assuming "Spr" is a spreadsheet

Dim Spr As New Spreadsheet Spr.SaveAs("C:\Data.sta")

C++ 'assuming "pSpreadsheet" is a pointer to a spreadsheet _SpreadsheetPtr pSpreadSheet = pApp->Spreadsheets->New("Current Memory");

pSpreadSheet->SaveAs("C:\Data.sta", false);

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.