Y
yanjingdudu
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button4Click(Sender: TObject);
var
ItemIndex :OleVariant;
FileName, ConfirmConversions, ReadOnly, AddToRecentFiles,PasswordDocument, PasswordTemplate, Revert,
WritePasswordDocument, WritePasswordTemplate, Format: OleVariant;
begin
if not dlgOpen.Execute then
Exit;
//打开文档//
FileName := dlgOpen.FileName;
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 );
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
ItemIndex := 1;
WordDocument.ConnectTo(WordApplication.Documents.Item(ItemIndex));
WordApplication.Options.CheckSpellingAsYouType := False;
WordApplication.Options.CheckGrammarAsYouType := False;
end;
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
var
ItemIndex :OleVariant;
FileName, ConfirmConversions, ReadOnly, AddToRecentFiles,PasswordDocument, PasswordTemplate, Revert,
WritePasswordDocument, WritePasswordTemplate, Format: OleVariant;
begin
if not dlgOpen.Execute then
Exit;
//打开文档//
FileName := dlgOpen.FileName;
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 );
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
ItemIndex := 1;
WordDocument.ConnectTo(WordApplication.Documents.Item(ItemIndex));
WordApplication.Options.CheckSpellingAsYouType := False;
WordApplication.Options.CheckGrammarAsYouType := False;
end;
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!
/////上面这句程序WordApplication.Documents.Open()的用法总是出错,not enough actual parameters.//请各位大侠指点一下.谢谢!