奇怪,我测试得好好的啊,再修改一下,贴上我测试的代码
var
Doc: OleVariant;
begin
if Assigned(WBR_DOC.Document) then
begin
Doc:=WBR_DOC.Document;
WBR_DOC.Navigate('');
Doc:=NULL;
while WBR_DOC.Document<>Nil do
Application.ProcessMessages;
end;
if CopyFile('C:/123.doc','C:/456.doc',False) then
WBR_DOC.Navigate('C:/456.doc');
end;