R
royhgf
Unregistered / Unconfirmed
GUEST, unregistred user!
我用的是WordApplication.Documents.Open方法调用的,以便控制编辑word文档。代码如下:var ItemIndex :OleVariant; FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format: OleVariant; {Open document} FileName := 'c:/aa.doc'; ConfirmConversions := False; ReadOnly := False; AddToRecentFiles := False; PasswordDocument := ''; PasswordTemplate := ''; Revert := True; WritePasswordDocument :='' ; WritePasswordTemplate :='' ; Format := wdOpenFormatDocument; WordApplication.Documents.Open( FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format ); 编译时出现如下错误:[Error] Unit1.pas(77): Not enough actual parameters请各位高手指教。