我以看过关于"OLE & word & Blob & Tstream "的讨论
但那里讲述的好象是用TOleContainer控件,我用以下程序调用Excel
procedure TForm1.Button1Click(Sender: TObject);
var
WorkSheet: Variant;
begin
VarObject := CreateOleObject('Excel.Application');
VarObject.Application.Workbooks.Add;
VarObject.Application.Visible := True;
WorkSheet := VarObject.Application.Workbooks[1].WorkSheets.Item[1];
end;
怎样才能将WorkSheet的内容保存到流中?
怎样才能将流中的内容读入到WorkSheet中?