ImportSPC
Import SPC file into worksheet
int ImportSPC( LPCSTR lpcszFilename, TreeNode & trInfo = NULL, DWORD dwOption = 0 )
0 on success, otherwise returns error codes
EX1
//Import SPC file into worksheet void Datasheet_ImportSPC_Ex1() { Worksheet wks; wks.Create(); if(wks) { string strFileName = GetOpenBox("*.spc"); if(strFileName.IsEmpty()) //user canceled return; Tree trInfo; int nRet = wks.ImportSPC(strFileName, trInfo); if(nRet != 0) printf("failed to import %s", strFileName); } }
origin.h