【发布时间】:2014-03-26 08:47:46
【问题描述】:
我目前正在处理基于 Delphi 5 的非常旧的项目。当我尝试在 x64 系统上打开新的 Word 文档时,我收到此错误:
根据MSDN,问题的根源可能是我的Office(x64)版本。在应用程序中,我们使用 TWordApplication 对象来管理 Word 调用。有没有解决这个问题的方法?在 Office x86 上一切正常。
这是代码的一部分:
Word := TWordApplication.Create(nil);
Word.ConnectKind := ckNewInstance;
Word.AutoQuit := True;
Word.Connect;
Word.Options.CheckSpellingAsYouType := False;
Word.Options.CheckGrammarAsYouType := False;
Word.Options.SuggestSpellingCorrections := False;
Word.Options.CheckGrammarWithSpelling := False;
Word.Options.ShowReadabilityStatistics := False;
Word.Options.IgnoreInternetAndFileAddresses := False;
Word.Options.IgnoreUppercase := True;
Word.Options.IgnoreMixedDigits := True;
Word.Options.ReplaceSelection := True;
【问题讨论】:
-
Microsoft 是否允许您同时安装 x86 和 x64 版本的 Office?
-
@marcus 不,这是不可能的