D
delphiere
Unregistered / Unconfirmed
GUEST, unregistred user!
代码如下:是我在离线数据库找的,可为什么运行后会出错呢?提示“服务器意外情况”?
系统是2000+office xp有问题吗?这到底是什么错误呀!谢谢了,大家帮帮忙!
var
Filename:OleVariant;
begin
WordApplication1.Connect;
WordApplication1.Visible:=True;
Filename:='c:/1.doc';
WordApplication1.Documents.Open(Filename,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam);
//就上面Open这一行出错!
WordDocument1.ConnectTo(WordApplication1.ActiveDocument);
系统是2000+office xp有问题吗?这到底是什么错误呀!谢谢了,大家帮帮忙!
var
Filename:OleVariant;
begin
WordApplication1.Connect;
WordApplication1.Visible:=True;
Filename:='c:/1.doc';
WordApplication1.Documents.Open(Filename,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam);
//就上面Open这一行出错!
WordDocument1.ConnectTo(WordApplication1.ActiveDocument);