SaveToFile
Saves the page to a file.
BOOL SaveToFile( LPCSTR lpcszPathName )
Returns TRUE on success and FALSE on failure.
EX1
int PageBase_SaveToFile_ex1() { // Make sure at least one graph page exists. GraphPage pg = Project.GraphPages(0); if( !pg ) { out_str("Invalid page!\n"); return 0; } // For this to succeed the folder c:\ must exist BOOL bOK = pg.SaveToFile("c:\\Origin Graph.ogg"); out_int("OK = ", bOK); return 0; }
Saves the page to a file (corresponds to the Save Window As menu item in Origin). Excel books are
saved as native Excel workbook files. Note windows are saved as text files.
origin.h