本文介绍了用VB6 Documents.Open打开word文档引发错误5273.该文件可以从word打开。终端服务XP客户端。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个多年来一直使用的旧VB6应用程序

An old VB6 application that has been working from years using

Set WordDoc = WordApp.Documents.Open(filepathname)

目前显示以下错误:

来源:Microsoft Word

Source: Microsoft Word

文档名称或路径是无效。

The document name or path is not valid.

请尝试下列办法中的一个或多个:

Try one or more of the following:

*检查路径以确保输入正确。

* Check the path to make sure it was typed correctly.

*在"文件"菜单上,单击"打开"。使用此对话框搜索文件。

* On the File menu, click Open. Search for the file using this dialog box.

  (\\server\validfilenamehere.doc)

 (\\server\validfilenamehere.doc)

当例程启动时,它将显示大约10秒的错误,而在等待期间,如果单击应用程序或尝试激活它,则显示"切换到"。对话框。 

When the routine is started it takes the error around 10 second to be shown, while in the wait period if the application is clicked or tried to be activated it shows the "Switch to" dialog box. 

出现此问题的环境如下:

- 终端服务瘦客户端XP政策限制

- Terminal Services Thin Client XP with policy restrictions

- Word 2003

- Word 2003

- 文档位于共享位置

- The document is located in a shared location

由于现有的政策限制,此时所做的验证包括:

Due to the existing policy restrictions the validations done to this point include:

- 用户可以访问该文件,没有权限问题域用户

- The user can access the file, there are no permission issues for the Domain User

- 文件可以直接从单词或Windows资源管理器中打开

- The file can be opened directly from within word, or Windows Explorer

应用程序在以下环境中运行失败:

- 使用Word 2007的终端服务XP

- Terminal Services XP with Word 2007

- 使用带有Word 2003,2010的XP的物理计算机

- Phisical computers with XP with Word 2003, 2010

由于资源限制,我目前没有可供使用的生产环境的副本。 因此,我正在寻找合理的解决方案,以证明在生产环境中进行的任何更改或测试都是合理的。

Due to resource limitations I don't currently have a copy of the production environment to play with.  So I'm looking for a reasonable solution to justify any change or test to be done on the production environment.

我正在尝试确定触发问题的精确环境变化,但这是一项非常漫长而复杂的任务,可以保证结果。

I'm trying to identify the precise environment change that triggered the problem but it is being a very long and complicated task whitout guaranteed results.

推荐答案

感谢您在MSDN论坛上发帖。

Thanks for posting in the MSDN forum.

我会让一些专家参与您的问题,看看他们是否可以帮助您。可能会有一些时间延迟,请耐心等待。

I will involve some experts into your issue to see whether they can help you. There might be some time delay, appreciate for your patience.

祝你有个美好的一天,

Tom


这篇关于用VB6 Documents.Open打开word文档引发错误5273.该文件可以从word打开。终端服务XP客户端。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 07:33