C
cherishz
Unregistered / Unconfirmed
GUEST, unregistred user!
请教一个问题,不知道大家遇没有遇到这种情况?
用delphi在打开word时,在office2000下,打开word时提示“是否恢复为保存的……”?
但在office2003下面,没有问题?可能是什么原因?
我的程序是这么写的。
ConfirmConversions := False;
ReadOnly := False;
AddToRecentFiles := False;
PasswordDocument := ''; //emptyparam
PasswordTemplate := ''; //emptyparam
Revert := true;
WritePasswordDocument:='';
WritePasswordTemplate:='';
Format := wdOpenFormatAuto;
Encoding := true; //emptyparam
Visible := true;//emptyparam
OpenConflictDocument:= ''; //emptyparam
OpenAndRepair := '';
DocumentDirection := ''; //emptyparam
NoEncodingDialog := '';
WordFileName:= FileName;
tmpWordDoc := WordApplication1.Documents.Open(WordFileName,ConfirmConversions,
ReadOnly,AddToRecentFiles,PasswordDocument,PasswordTemplate,Revert,
WritePasswordTemplate,WritePasswordTemplate,
Format,Encoding,
Visible);
WordDoc := TWordDocument.Create(self);
WordDoc.ConnectTo(tmpWordDoc);
WordDoc.Activate;
WordDoc.ActiveWindow.View.Type_ := wdPageView;
用delphi在打开word时,在office2000下,打开word时提示“是否恢复为保存的……”?
但在office2003下面,没有问题?可能是什么原因?
我的程序是这么写的。
ConfirmConversions := False;
ReadOnly := False;
AddToRecentFiles := False;
PasswordDocument := ''; //emptyparam
PasswordTemplate := ''; //emptyparam
Revert := true;
WritePasswordDocument:='';
WritePasswordTemplate:='';
Format := wdOpenFormatAuto;
Encoding := true; //emptyparam
Visible := true;//emptyparam
OpenConflictDocument:= ''; //emptyparam
OpenAndRepair := '';
DocumentDirection := ''; //emptyparam
NoEncodingDialog := '';
WordFileName:= FileName;
tmpWordDoc := WordApplication1.Documents.Open(WordFileName,ConfirmConversions,
ReadOnly,AddToRecentFiles,PasswordDocument,PasswordTemplate,Revert,
WritePasswordTemplate,WritePasswordTemplate,
Format,Encoding,
Visible);
WordDoc := TWordDocument.Create(self);
WordDoc.ConnectTo(tmpWordDoc);
WordDoc.Activate;
WordDoc.ActiveWindow.View.Type_ := wdPageView;