For more information about this change, read this blog post. This issue occurs with Office in the Microsoft Store or pre-installed apps and does not occur with Click-To-Run or volume license Products. These KBs address an issue that prevents certain apps from launching when you set folder redirection for the Roaming AppData folder to a network path. To determine whether your Office is an "Office in the Microsoft Store" version or another, follow these steps:.
If you are using "Office in the Microsoft Store", the Update Options button will not be displayed, and you will see " Microsoft Store " in under About Word instead of a build version. Or is there another alternative? Other information there use google translater to read. There is a detailed MS knowledge base article titled Considerations for server-side Automation of Office.
Some key excerpts:. User Identity : Office applications assume a user identity when the applications are run, even when Automation starts the applications.
The applications try to initialize toolbars, menus, options, printers, and some add-ins based on settings in the user registry hive for the user who launches the application. Therefore, Office may not initialize correctly on startup. Even if the Office application can be started, other functions may not work correctly if no user profile exists. Interactivity with the desktop : Office applications assume that they are being run under an interactive desktop.
In some circumstances, applications may need to be made visible for certain Automation functions to work correctly. If an unexpected error occurs, or if an unspecified parameter is needed to complete a function, Office is designed to prompt the user with a modal dialog box that asks the user what the user wants to do.
A modal dialog box on a non-interactive desktop cannot be dismissed. Therefore, that thread stops responding hangs indefinitely. Although certain coding practices can help reduce the likelihood of this issue, these practices cannot prevent the issue entirely.
This fact alone makes running Office Applications from a server-side environment risky and unsupported. You would need to run the service under an account that has a user profile. But even when you fix that, the other bullet point will kill you.
Office applications do indeed assume they are running under an interactive desktop. My advice is to abandon attempting to automate Office from a service. Use a library like Aspose instead. Or run the process on an interactive desktop. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Cannot access excel file Ask Question. Asked 9 years ago. Active 3 years, 1 month ago. Viewed 19k times. I use the following code to access excel. If the file cannot be accessed because the file is corrupt or deleted, external drive is damaged or effected by virus, you can recover the lost file with FonePaw Data Recovery opens new window , a Windows program that can recover deleted or lost files from hard drive, external drive, SD card, memory card and more.
Note : Don't install the program on the drive that you lost data. For example, if the corrupt file is on C drive, get the program on D or E drive in case that the installation will overwrite the file. Launch the program. Choose what kind of file you want to recover and the location of the inaccessible file. Click Scan. It will quick scan your PC first. If the file that you need doesn't appear after quick scan, run deep scan.
Some users share a trick to fix "Windows cannot access the specified device, path, or file" error. That is to enable your hidden administrator account and then give your account the adminstrator right.
Put your PC in safe mode. Hit Enter key. The hidden adminstrator account will be enabled. Now restart the PC into safe mode. Choose the hidden adminstrator account to enter your PC. STEP 4. Open Control Panel and set to View by small icon. You'll find User Accounts and click on it. STEP 5. Now you can restart your PC and log in with your account.
You should be able to open the file or run the program now. Friday, September 17,
0コメント