SaveExcelInOpj
Origin can save the excel data in OPJ file and is loaded internally on load. When called on a excel page, this function enables or disables such saving as requested.
BOOL SaveExcelInOpj( BOOL bSave = TRUE, BOOL bAutoUpdate = TRUE )
TRUE if success, otherwise FALSE.
EX1
// For this example, Open a existing Excel in Origin void WorksheetPage_SaveExcelInOpj_ex1(string strPathNameToSave = "c:\\proj.opj") { WorksheetPage wp = Project.Pages(); //If bSave = FALSE, bAutoUpdate = TRUE will automatically update the linked excel file if original Excel changed. wp.SaveExcelInOpj(FALSE, TRUE); Project.Save(strPathNameToSave); }
WorksheetPage::ExcelSheet, WorksheetPage::OpenExcel
origin.h