SetScript
Worksheet script setting
void SetScript( LPCSTR lpcszScript, DWORD dwCntrl, LPCSTR lpcszRangeCheckChange = NULL )
void
EX1
//Set Worksheet script in the active worksheet. void Worksheet_SetScript_Ex1() { Worksheet wks = Project.ActiveLayer(); string strScript = "wksn$=%H;\r\nwin -T plot;\r\nplotxy [wksn$]1!(1,2);\r\n"; DWORD dwCntrl = WKSC_CNTL_IMPORT | WKSC_CNTL_LT_MULTILINES; wks.SetScript(strScript, dwCntrl, "[Data1]1!1:5"); }
Worksheet::GetScript
origin.h