本文发表在 rolia.net 枫下论坛To work around this, we should bind office applications with an interactive
user account, please follow these steps:
1. Log on to the computer as the Administrator and install (or reinstall)
Office using a complete install. For system robustness, it is recommended
that you copy the contents of the Office CD-ROM to a local drive and install
Office from this location.
2. Start the Office application that you intend to automate. This forces the
application to register itself.
3. After the application is running, press ALT+F11 to load the Microsoft
Visual Basic for Applications (VBA) editor. This forces VBA to initialize
itself.
4. Close the applications, including VBA.
5. Click Start, click Run, and then type DCOMCNFG. Select the application
that you want to automate. The application names are listed below:
Microsoft PowerPoint - Microsoft PowerPoint Presentation
Click Properties to open the property dialog box for this application.
6. Click the Security tab. Verify that Use Default Access Permissions and
Use Default Launch Permissions are selected.
7. Click the Identity tab and then select The Interactive User.
8. Click OK to close the property dialog box and return to the main
applications list dialog box.
9. In the DCOM Configuration dialog box, click the Default Security tab.
10. Click Edit Defaults for access permissions. Verify that the following
users are listed in the access permissions, or add the users if they are not
listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts only exist if Internet Information Server (IIS) is
installed on the computer.
11. Make sure that each user is allowed access and click OK.
12. Click Edit Defaults for launch permissions. Verify that the following
users are listed in the launch permissions, or add the users if they are not
listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts exist only if IIS is installed on the computer.
13. Make sure that each user is allowed access, and then click OK.
14. Click OK to close DCOMCNFG.
15. Start REGEDIT and verify that the following keys and string values exist
for the Office application that you want to automate:
Microsoft PowerPoint:
Key: HKEY_CLASSES_ROOT\AppID\POWERPNT.EXE
AppID: {64818D10-4F9B-11CF-86EA-00AA00B929E8}
If these keys do not exist, please create it.
16. Restart the system. This is required.
After the reboot, PFCL should work!更多精彩文章及讨论,请光临枫下论坛 rolia.net
user account, please follow these steps:
1. Log on to the computer as the Administrator and install (or reinstall)
Office using a complete install. For system robustness, it is recommended
that you copy the contents of the Office CD-ROM to a local drive and install
Office from this location.
2. Start the Office application that you intend to automate. This forces the
application to register itself.
3. After the application is running, press ALT+F11 to load the Microsoft
Visual Basic for Applications (VBA) editor. This forces VBA to initialize
itself.
4. Close the applications, including VBA.
5. Click Start, click Run, and then type DCOMCNFG. Select the application
that you want to automate. The application names are listed below:
Microsoft PowerPoint - Microsoft PowerPoint Presentation
Click Properties to open the property dialog box for this application.
6. Click the Security tab. Verify that Use Default Access Permissions and
Use Default Launch Permissions are selected.
7. Click the Identity tab and then select The Interactive User.
8. Click OK to close the property dialog box and return to the main
applications list dialog box.
9. In the DCOM Configuration dialog box, click the Default Security tab.
10. Click Edit Defaults for access permissions. Verify that the following
users are listed in the access permissions, or add the users if they are not
listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts only exist if Internet Information Server (IIS) is
installed on the computer.
11. Make sure that each user is allowed access and click OK.
12. Click Edit Defaults for launch permissions. Verify that the following
users are listed in the launch permissions, or add the users if they are not
listed:
SYSTEM
INTERACTIVE
Everyone
Administrators
IUSR_<machinename>*
IWAM_<machinename>*
* These accounts exist only if IIS is installed on the computer.
13. Make sure that each user is allowed access, and then click OK.
14. Click OK to close DCOMCNFG.
15. Start REGEDIT and verify that the following keys and string values exist
for the Office application that you want to automate:
Microsoft PowerPoint:
Key: HKEY_CLASSES_ROOT\AppID\POWERPNT.EXE
AppID: {64818D10-4F9B-11CF-86EA-00AA00B929E8}
If these keys do not exist, please create it.
16. Restart the system. This is required.
After the reboot, PFCL should work!更多精彩文章及讨论,请光临枫下论坛 rolia.net