PutSPCBlob
Put the data from an SPC blob into the worksheet.
BOOL PutSPCBlob( _VARIANT & varBlob, int nRow = -1, int nCol = 0, int nRepaintMode = 0 )
TRUE for success; otherwise FALSE
EX1
int Worksheet_PutSPCBlob_Ex1() { Object oSpcIO; string strPathName = GetOpenBox("*.spc"); // the GRAMS object used for importing the SPC file oSpcIO = CreateObject("GSpcIOLib.GSpcIO"); try { oSpcIO.OpenFile(strPathName); } catch(int nError) { printf("Failed to open file %s", strPathName); return nError; } _VARIANT varBlob; varBlob = oSpcIO.SaveBlob(); Worksheet wks = Project.ActiveLayer(); if(wks) { BOOL bRet = wks.PutSPCBlob(varBlob); out_int("Return value from PutSPCBlob is ", bRet); return (int) bRet; } return 0; }
origin.h