K
kuilou
Unregistered / Unconfirmed
GUEST, unregistred user!
急,在线等待,这点代码错在那里?关于流操作,从库中取得WORD 文档(三层结构DELPHI+SQL SERVER),
var
s : tmemorystream;
v1 : Variant ;
begin
s:=tmemorystream.Create;
form1.ClientDataSet1.Active:=true;
Tblobfield(form1.ClientDataSet1.FieldByName('wlc2')).SaveToStream(s);
s.Position:=0;
OleContainer1.LoadFromStream(s);//到这出错:流读取错误!
OleContainer1.DoVerb(ovshow);
end;
var
s : tmemorystream;
v1 : Variant ;
begin
s:=tmemorystream.Create;
form1.ClientDataSet1.Active:=true;
Tblobfield(form1.ClientDataSet1.FieldByName('wlc2')).SaveToStream(s);
s.Position:=0;
OleContainer1.LoadFromStream(s);//到这出错:流读取错误!
OleContainer1.DoVerb(ovshow);
end;