L
linsb
Unregistered / Unconfirmed
GUEST, unregistred user!
if opendialog1.execute then begin
filename := OpenDialog1.filename;
WordApplication1.Connect;
WordApplication1.Visible := True;
confirmconversions := false;
readonly := false;
addtorecentfiles := false;
revert := true;
passworddocument := '';
passwordtemplate := '';
writepassworddocument := '';
writepasswordtemplate := '';
format := wdopenformatdocument; // EmptyParam
wordapplication1.documents.open(filename, confirmconversions,
readonly, addtorecentfiles, passworddocument, passwordtemplate,
revert, writepassworddocument, writepasswordtemplate, EmptyParam);
itemindex := 1;
doc.connectto(wordapplication1.documents.item(itemindex));
wordapplication1.options.checkspellingasyoutype := false;
wordapplication1.options.checkgrammarasyoutype := false;
table1.open;// 该语句出错,找不到路径!
end;
出错语句放到第一行不出错,请问为什么?,如果必须放在后,如何不出错?
Email:linsb3031@mail.china.com
filename := OpenDialog1.filename;
WordApplication1.Connect;
WordApplication1.Visible := True;
confirmconversions := false;
readonly := false;
addtorecentfiles := false;
revert := true;
passworddocument := '';
passwordtemplate := '';
writepassworddocument := '';
writepasswordtemplate := '';
format := wdopenformatdocument; // EmptyParam
wordapplication1.documents.open(filename, confirmconversions,
readonly, addtorecentfiles, passworddocument, passwordtemplate,
revert, writepassworddocument, writepasswordtemplate, EmptyParam);
itemindex := 1;
doc.connectto(wordapplication1.documents.item(itemindex));
wordapplication1.options.checkspellingasyoutype := false;
wordapplication1.options.checkgrammarasyoutype := false;
table1.open;// 该语句出错,找不到路径!
end;
出错语句放到第一行不出错,请问为什么?,如果必须放在后,如何不出错?
Email:linsb3031@mail.china.com