PutSPCBlob
Put the data from an SPC blob into the matrix.
BOOL PutSPCBlob( _VARIANT & varBlob )
TRUE for success; otherwise FALSE
EX1
//Put the data from an SPC blob into the matrix void MatrixLayer_PutSPCBlob_Ex1() { Object oSpcIO; string strPathName = GetOpenBox("*.spc"); oSpcIO = CreateObject("GSpcIOLib.GSpcIO"); // the GRAMS object used for importing the SPC file try { oSpcIO.OpenFile(strPathName); } catch(int nErr) { printf("Faild to open."); return; } _VARIANT varBlob; varBlob = oSpcIO.SaveBlob(); MatrixPage mp = Project.MatrixPages(0); if(!mp) return; MatrixLayer ml(mp.GetName()); BOOL bRet = ml.PutSPCBlob(varBlob); out_int("Return value from PutSPCBlob is ", bRet); }
origin.h