Using DocConverter WBE 2010 for Conversions with ASP.NET

This article provides special configuration instructions to consider when using DocConverter WBE 2010 to convert Microsoft Office documents to PDF and to convert PDFs to other formats from an ASP page.

Please review the contents of this article carefully and make the appropriate changes depending on your operating system and your intended usage of DocConverter WBE.

Performing PDFTo Conversions from an ASP Page

For PDFTo conversions, it is necessary to provide DocConverter WBE with access to a file location with full control. Do so, by setting the TemporaryPath property to a folder that is writable and to which the App Pool user has access.

Performing Microsoft Office to PDF Conversions from an ASP Page

DocConverter WBE may not have the appropriate level of access or permissions to locate and access Microsoft Office for WordToPDF, ExcelToPDF, and PowerPointToPDF conversions. To provide the appropriate level of access and permissions, you must edit the security settings in DCOMcnfg, and may also need to manually create a folder with Read\Write permissions for DocConverter WBE.

Perform the following instructions depending on your operating system and chosen mode of operation (32-bit or 64-bit).

Note: This following instructions assume that you are running the IIS App Pool under the NETWORK SERVICE user. If running the App Pool under a user other than NETWORK SERVICE, replace "NETWORK SERVICE" in these instructions with the appropriate user name.

  1. Do one of the following:
    • If using Windows Server 2008 or later in 64-bit mode, type mmc comexp.msc /32 from a command prompt to run Component Services in 32-bit mode.
      Note: Configuration changes made to DCOMcnfg in 64bit mode affecting Microsoft Office will not take effect.
    • If using Windows Server 2003 in 32- or 64-bit mode, or Windows Server 2008 or later in 32-bit mode, type dcomcnfg from a command prompt.
  2. Double-click Computer, and then double-click My Computer.
  3. Double-click DCOM Config.
    A list of applications appears.
  4. Select one of the following applications, depending on the type of Microsoft Office to PDF conversion(s) you wish to perform with DocConverter WBE:
    • Microsoft Office Word 97-2003 Document—for WordToPDF conversions
    • Microsoft Excel Application—for ExcelToPDF conversions
    • Microsoft Office PowerPoint Slide—for PowerPointToPDF conversions
      Note: If you are unable to locate an application by name in the list, use the following Application IDs to select the appropriate application:
    • {00020906-0000-0000-C000-000000000046} (Microsoft Office Word 97-2003 Document)
    • {00020812-0000-0000-C000-000000000046} (Microsoft Excel Application)
    • {048EB43E-2059-422F-95E0-557DA96038AF} (Microsoft Office PowerPoint Slide)
  5. Click the Security tab, and then edit the following options:
    • Launch Permissions—Select the NETWORK SERVICE user, and then click to select the Local Launch and Local Activation options.
    • Access Permissions—Select the NETWORK SERVICE user, and then click to select the Local Access option.
  6. Click the Identity tab, and then select This User.
  7. Browse for, or specify, the user which can fully access the selected Microsoft Office application, and then enter the Password.
    Note: ActivePDF recommends using a Local Admin account.
  8. Repeat Steps 4 through 7 for each of the Microsoft Office applications for which you will convert files to PDF.
  9. If you are using Windows Server 2003 in either 32-bit or 64-bit mode, you must create the following folder:
    C:\Documents and Settings\Default User\Application Data\ActivePDF\DocConverter\WBE,
    with Read/Write permissions for the NETWORK SERVICE user.