访问:生成的.DOC文件无法在iDevice上打开
我正在使用典型的旧 access-VBA 应用程序生成 .DOC 文件 GetObject("", Word.Document) 策略。我可以在 Windows 中很好地打开此 .doc,但无法在 iPad\iPhone 上打开它。奇怪的是,如果我在 MS Word 中打开这个 .doc,然后再次将其另存为 .doc,我就可以在 iPad 上打开它。
我需要做什么才能确保此 .doc 在 idevice 上保存为不是“无效格式”?有什么想法吗?
编辑1: 我发现一些代码看起来像: DoCmd.OutputTo ...,...,“富文本格式”,...我想知道这是否正确?
编辑2: 我看到的是 DoCmd.OutputTo 作为 RTF 是 iDevices 似乎不喜欢的。还有其他方法可以做到这一点吗?
I am generating a .DOC file in an old access-VBA application using the typical
GetObject("", Word.Document) strategy. I can open this .doc just fine in windows, however I cannot open it on an iPad\iPhone. The strange thing is, if I open this .doc in MS word, save it again as a .doc, I can then open it on an iPad.
What do I have to do to ensure that this .doc gets saved as something that isn't "an invalid format" on an idevice? Any ideas?
EDIT 1:
I Found some code that looks like:
DoCmd.OutputTo ...,..., "Rich Text Format",... and am wondering if this is correct?
EDIT 2:
What I am seeing is DoCmd.OutputTo as a RTF is what the iDevices do not seem to like. Any other way to go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为您实际上是以 RTF(富文本格式)保存文件,但为其指定了 .DOC 扩展名。 MS Word 可以找出差异,但 iPad 不能。
要使文件在两台设备上打开,请为文档指定
.RTF
扩展名,而不是.DOC
。This is because you are actually saving the file in RTF (Rich Text Format), but giving it a .DOC extension. MS Word can figure out the difference, but the iPad cannot.
To get the file to open on both devices, give the document a
.RTF
extension instead of.DOC
.