在用流读取的时候 不要忘记position:=0 把它的指针指到最前面 另外你看看有没有存储成功 在tblobfield(table1.FieldByName('stnr')).savetofile(ss); 加上一句 if Fileexists(ss) then // else
我在读入读出的时候都没问题,就是一个问题是:我用 OleContainer1.LoadFromFile(ExtractFileDir(Application.Exename) + '\11.doc'); 出现错误:project project.exe raised exception class EOleSysError with message 'OLE error 80030050'. Process stopped . Use Step or Run to continue.
我用了,在读入的时候告诉我“stream read err”这个错误提示。所以我改用文件形式来存储,但再次往olecontainer里写的时候就出现错误了。
不要忘记position:=0
把它的指针指到最前面
另外你看看有没有存储成功
在tblobfield(table1.FieldByName('stnr')).savetofile(ss);
加上一句
if Fileexists(ss) then
//
else
OleContainer1.LoadFromFile(ExtractFileDir(Application.Exename) + '\11.doc');
出现错误:project project.exe raised exception class EOleSysError with message 'OLE error 80030050'. Process stopped . Use Step or Run to continue.
他怎么不结贴呢?~~~~~~~~