PRB: Office Document Does Not Open When You Debug from Visual Studio .NET (823989)
The information in this article applies to:
- Microsoft Visual Studio Tools for the Microsoft Office System version 2003
SYMPTOMSYou are developing a solution by using Microsoft Visual Studio Tools for the Microsoft Office System. Before you build your project, you change the output path of the project to a location that is outside the current project folder. When you run your project, you receive an error message when Excel or Word tries to open the document. You receive the following message in Excel: ..\..\ExcelProject1.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct.
If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved, or deleted. You receive the following message in Word: Word experienced an error trying to open the file. CAUSEWhen you create a new Office project, the Command Line Argument setting for the debugging configuration is set to a path that is relative to the original project output path. If you later change the project output path to a different folder depth, Excel or Word cannot locate the workbook or document when you run the project from the Visual Studio .NET development environment.RESOLUTIONTo resolve this problem, update the Command Line Argument setting for the debugging configuration such that it contains either an absolute path or a path that is relative to the project output.STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbDeployment kbAutomation kbprb kbnofix kbBug KB823989 kbAudDeveloper |
---|
|