【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.46.61 Worksheet::PutSPCBlob
Contents
Description
Put the data from an SPC blob into the worksheet.
Syntax
BOOL PutSPCBlob( _VARIANT & varBlob, int nRow = -1, int nCol = 0, int nRepaintMode = 0 )
Parameters
- varBlob
- [input] the VARIANT blob containing the data.
- nRow
- [input] Optional row number to begin the import at. default is -1, that means the first row.
- nCol
- [input] Optional column number to begin the import at. default is 0.
- nRepaintMode
- [input] Window Refresh mode. Default will use realtime drawing, can disable repaint, or direct repaint.
Return
TRUE for success; otherwise FALSE
Examples
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; }
Remark
See Also
Header to Include
origin.h