Saves the page to a file.
BOOL SaveToFile( LPCSTR lpcszPathName )
Returns TRUE on success and FALSE on failure.
// Make sure at least one graph page exists.
GraphPage pg = Project.GraphPages(0);
if( !pg )
// For this to succeed the folder c:\ must exist
BOOL bOK = pg.SaveToFile("c:\\Origin Graph.ogg");
out_int("OK = ", bOK);
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.