

Troubleshooting ABCpdf and Microsoft Office Issues. Troubleshooting ABCpdf and Microsoft Office Installations. ABCpdf allows you to import Office documents in a number of ways through a choice of read modules. This is for the following reasons. Windows services do not, by default, have the permissions required to launch MS Office tasks.
Installing IIS 7; Installing Publishing Technologies; Web Platform Installer; Installing IIS 8.5; Installing Necessary IIS 7.0 Components on Windows Vista.
The Windows service and any MS Office task need to run as the same user so that they can communicate correctly. Microsoft Office is primarily designed to run as an interactive application. Services run in Session 0 on later versions of Windows and the fact that Session 0 prohibits user interaction makes it difficult to troubleshoot configuration issues. Further, please be aware that there are risks running MS office server side, so please read . IIS7 on Win. 20. 08 or Vista, you can just set the identity of the application pool to a user that has certain permissions (as explained below), and optionally load the user profile. There is no need to use a COM+ solution as required for pre IIS7 machines. Using a COM+ solution will not hurt but you must ensure that the COM+ identity and the application pool identity are the same.
Further, please note that in Windows 2. COM+ applications. This means that even if you do use COM+, you will still need to set the application identity in the application pool and load the user profile.
Manage your IIS 7.0 and IIS 7.5 servers remotely. Generally, a download manager enables downloading of large files or multiples files in one session. Installing ColdFusion on IIS 7 + Configure IIS for ColdFusion in Windows Vista and Windows Server 2008. Windows Server 2003, Windows Server 2003 SP1 and SP2, and Windows Server 2003 R2 retired content. The content you requested has already retired. Installing IIS 7.0 on Windows Server 2008 is a little different from installing IIS 6.0, but it’s still pretty straightforward using Server Manager.
Services do have the user profile loaded. Follow these steps to validate Office Automation on your machine: Download and unzip the following file: Import. Doc. zip. This file contains a simple website that converts uploaded files either via Microsoft Office or Open. Office. org. This latter is an extra feature and you can ignore it. Use a dedicated application pool and make sure all of the ABCpdf binaries are in the required locations. You may need to copy ABCpdf. Create a dedicated account for running Office Automation, for example call it Office.
Automation. User. Assign it a password that never expires.
Add this account to the IIS groups: IIS. Make sure that when opening such a document there are no pop- ups. This means making sure that Office has been activated and all the initial questions Office asks have been answered, e. For 6. 4- bit machines: C: \Windows\Temp - Modify. C: \Windows\syswow. Read. C: \Windows\syswow.
Read. C: \Windows\syswow. App. Data - Modify.
C: \Windows\syswow. Desktop - Modify (Create it if it does not exist)For 3. C: \Windows\Temp - Modify. C: \Windows\system. Read. C: \Windows\system. Read. C: \Windows\system.
App. Data - Modify. C: \Windows\system. Desktop - Modify (Create it if it does not exist)You can assign folder permissions by browsing to such folders in Windows Explorer and adding the user in the Security tab of the folder Properties dialog. Give this account (or better the IIS group it belongs to) COM launch and activation permissions. In Component Services (dcomcnfg. My. Computer. Launch the properties dialog and go to the COM Security tab. Add your user and give it full access.
Repeat for . Also load the user profile by setting Load. User. Profile to true. You can do so in the application pool advanced settings: You should be done. Check that it works. You can also try to set Load. User. Profile to false, but if you do so then you should do the following: http: //support.
EN- US/. This explains how to add the XPS print driver to the default user. You may also want to use Network Service instead of a dedicated user. This might also work provided it has the required permissions (points 7 and 8) and provided you load the user profile (if you have not added the XPS print driver to the default user as explained above). ASP. NET before IIS7. For IIS versions before IIS7, e.
IIS5. 5 or IIS6 on Windows XP or 2. Microsoft Office files directly from the ASP. NET process. We therefore propose a solution based on COM+ Enterprise. Services. We will therefore rely on a Serviced.
Component for performing Office Automation (a COM+ wrapper basically). Follow these steps for validating Office Automation on your machine: Download and unzip the following MSOffice.
Example. Site. zip. This file contains an MS Visual Studio solution with two projects: Pdf. Enterprise. Services, the ABCpdf COM+ wrapper. Web. Utilities, a simple website that uses Pdf.
Enterprise. Services to convert a Word document into PDF. The PDF will be displayed directly in the browser. Launch Web. Utilities. Install the website in IIS Manager, the website folder is Example.
Site\Web. Utilities. Create a dedicated account for running Office Automation, for example call it Office. Automation. User.
Assign a password that never expires to this account and give this account Administrator rights. Log in using this account and open at least one Office document of the type that you intend to convert.
In this example we will convert a . Make sure that when opening such a document there are no pop- ups. This means making sure that Office has been activated and all the initial questions Office asks have been answered, e. The version of Reg. Svcs. exe determines whether the COM+ Application it registers will run in a 3. The 3. 2- bit or 6.
MS Visual Studio command prompt chooses the corresponding framework directory as one of the search paths. You should use the one that matches ABCpdf you plan to use.
Set the identity of Pdf. Enterprise. Services to Office. Automation. User. You can do so from Component Services, by running DCOMCNFG: right- click on the COM+ component, select properties and go to the Identity tab. You can also set the identity to the interactive user to start with but you will have to change it later on unless someone will always be logged in.
Browse to default. If successful a PDF document containing the word . We will rely on a COM+ application for performing Office Automation.
On recent Windows versions such as Win 2. Vista the COM+ application is probably not necessary but we recommend you start with COM+ at first.
Unzip the following MSOffice. Service. zip. This file contains a MS Visual Studio 2. Pdf. Enterprise. Services, the ABCpdf COM+ wrapper. Test. Service, a Windows test service that uses Pdf. Enterprise. Services to convert a Word document into PDF. Create a folder that is publicly accessible, e.
C: \services. After building the solution (you may need to change the reference to ABCpdf in Pdf. Enterprise. Services), copy the content of both projects' bin\Debug folders - or bin\Release if building in release- to C: \services. Also copy any other DLLs that your projects refer to and that are not in the GAC (for .
NET) or in %System. Root%\system. 32 (for native DLLs). Copy the Documents folder that you find in the zip file to C: \Services. Create a dedicated account for running Office Automation, for example call it Office.
Automation. User. Assign a password that never expires to this account and give this account Administrator rights. Log in using this account and open at least one Office document of the type that you intend to convert. In this example we will convert a .
Make sure that when opening such a document there are no pop- ups. This means making sure that Office has been activated and all the initial questions Office asks have been answered, e. The version of Reg. Svcs. exe determines whether the COM+ Application it registers will run in a 3. The 3. 2- bit or 6.
MS Visual Studio command prompt chooses the corresponding framework directory as one of the search paths. You should use the one that matches ABCpdf you plan to use. Set the identity of Pdf. Enterprises to the Office.
Automation. User account. You can do so from Component Services (run DCOMCNFG in Vista or go to the Control Panel / Administrative Tools in XP) . Right- click on the COM+ component, select properties and go to the Identity tab.
On Windows 2. 00. Windows versions it's also necessary to set the log- on identity of the service to the same user. This is because COM+ applications no longer have the user profile loaded. Install the service in the usual way, e. Launch services from the Control Panel / Administrative Tools. The service should appear as ABCpdf test service with log- on set to Network Service and Startup Type manual.
Start the service. After the service has started a file called input.
C: \Services\Documents. Any log messages go to C: \Services\abcpdf. Additional Information on Configuring Office. This is not normally necessary unless the default settings have been changed.
We want the Office Application to launch as the . By default on x. 64 versions of Windows the x. To launch the x. 86 version you will need to perform the following command line operation: C: \WINDOWS\Sys. WOW6. 4> mmc comexp. Go to Computers > My.
Computer > DCOM Config. Right- click the application that you want to automate. The application names are listed below: Application. MS Access 9. 7MS Access 2. MS Office Access 2. MS Excel 9. 7/2. 00.
MS Office Excel 2. MS Office Excel 2. MS Word 9. 7MS Word 2. MS Office Word 2. MS Office Word 2. DCOM Name. Microsoft Access Database.
Microsoft Access Application. Microsoft Office Access Application Microsoft Excel Application. Microsoft Excel Application. Microsoft Excel Application.
Microsoft Word Basic. Microsoft Word Document.
Microsoft Office Word 9. Document. Microsoft Word 9. Document. On some systems Microsoft Word is not displayed and you will have to use . Verify that The Launching User is selected. Lowering Admin Rights.
We ask that the COM+ account has Administrator rights because it requires permissions that the standard Users group does not normally have. However you can remove your Office Automation user from the Administrators group as long as you give it the following permissions: It must have access to the following system folders, as indicated on the right. For 6. 4- bit machines: C: \Windows\Temp - Modify. C: \Windows\syswow. Read. C: \Windows\syswow.
C: \Windows\syswow. Desktop - Modify (Create it if it does not exist)For 3.
C: \Windows\Temp - Modify. C: \Windows\system. Read. C: \Windows\system. Read. C: \Windows\system. App. Data - Modify.