Thursday, October 17, 2013

How to enable document conversion from Word to HTML in SharePoint 2010

Introduction

BI Services Series 
How to implement SharePoint 2010 Access Services
How to setup Secure Store and BCS to access LOB data
How to enable document conversion from Word to HTML in SharePoint 2010
How to set up Excel Services to use Secure Store Services and an unattended service account
This posting walks through the process of enabling document conversion from Word to HTML using Word Automation Services.  The procedure developed for this posting was performed on the following farm topology: two-tier SharePoint 2010 farm, hosted on Windows Server 2008 R2 and employing SQL Server 2008 R2 for the database tier.  Domain controller, DNS, SQL Server instances collocated on same server.  NTLM authentication. All servers hosted within VMware Workstation 7.X.  All references used to guide development of this posting are provided in the References section.

Step 1: Configure
  1. Launch Central Administration under an account that is a member of the Farm Administrators SharePoint group.
  2. Go: Central Administration > Service Applications > Manage services on server.  The browser is navigated to the Services on Server page:
  3. Look for the following two services:
    • Document Conversions Launcher Service.
    • Document Conversions Load Balancer Service.
    If you used the Farm Configuration Wizard, after initial installation, these will most likely already be created.  However, by default, they will be stopped.
  4. Click the Document Conversions Load Balancer Service first.  The browser is navigated to the Load Balancer Service Settings page:
  5. Configure as desired, and then click OK.  The browser is navigated back to the Services on Server page.  If this service is not started, start it.  The Load Balancer service must be configured and started before configuring and starting the Launcher service, as the Launcher service depends upon the Load Balancer settings.
  6. Click the Document Conversions Launcher Service second. The browser is navigated to the Launcher Service Settings page:
  7. Configure as desired.  Note that the available servers listed in the Load Balancer server dropdown depends on properly configuring and starting the Load Balancer Service.
  8. Click OK. The browser is navigated back to the Services on Server page.
  9. Start the Document Conversions Launcher Service.  Both services will now appear as stated in the Services on Server page:
  10. This completes Step 1.
Step 2: Enable
  1. Go: Central Administration > General Application Settings > External Service Connections > Configure document conversions.  The browser is navigated to the Configure Document Conversions page:
  2. In the Web Application section, select the web application from the dropdown list.
  3. In the Enable Document Conversions section, select Yes.
  4. In the Load Balancer Server section, select the Load Balance Server.
  5. In the Conversion Schedule section, select the desired schedule.  At this point, the page looks like this:
  6. In the Converter Settings section, click Customize From Word Document to Web Page (docx to html).  The browser is navigated to the Document Converter Settings page:.
  7. In the Converter Settings section, ensure that Make this document converter... has been checked, and edit other settings as desired:
  8. Click OK.  The browser is navigated back to the Configure Document Conversions page.
  9. Exit Central Administration.
  10. This completes Step 2.
Step 3: Activate
  1. Connect to the web application identified in step 2.2, above.
  2. Go: Site Actions > Site Settings > Site Collection Administration > Site collection features.  The browser is navigated to the Features page.
  3. Scroll down to near the bottom, where you'll find the SharePoint Server Publishing Infrastructure feature:
    By default, this feature is not activated.
  4. Click the Activate button next to this feature.  After a few moments, the button will change to state Deactivate and a blue status message will appear next to it, indicating Activated.
  5. Now go: Site Actions > Site Settings > Site Actions > Manage site features.  The browser is navigated to the site settings Features page.
  6. Scroll down until you find the SharePoint Server Publishing feature:
  7. Click the Activate button next to this feature.  After a few moments, the button will change to state Deactivate and a blue status message will appear next to it, indicating Activated.
  8. This completes Step 3.
Step 4: Test
  1. Upload a Word document to a document library in some web application site.  It doesn't matter which, as Word Automation services are set for the Web Application level and not at the site collection level.  For example, the Word document here was loaded to the default Shared Documents folder:
  2. Open the file's context menu, point to Convert Document, and then point to From Word Document to Web Page:
  3. Click this menu option.  The browser is then navigated to the Create Page From Document page.
  4. In the Page Title and Description section, enter a Title and a description. As the title is entered, it will be used to create an initial URL Name.  This name can be changed independently of the Title.  For this example, an underscore was used in place of a blank to avoid HTML encoding:
  5. Click Create.  A busy indicator will appear momentarily.  After a few moments, the browser is navigated to the new page, displaying the word document in HTML format:
  6. This page was created by default in the Pages library, which is created when you activate the Publishing feature:
     
  7. This completes testing.
Optional: Remove the new page link from Global and Current Navigation
  1. To remove the newly converted Word document's link from Global and Current navigation, go: Site Actions > Site Settings > Look and Feel > Navigation.  The browser is navigated to the Navigation Settings page.
  2. In the Global Navigation and Current Navigation sections, uncheck the Show pages checkbox setting:
  3. Click OK.  The browser is navigated back to the Site Settings page, with the new page links no longer appearing:
  4. This completes this optional step.
Summary

This posting has presented the steps for how to enable document conversion from Word to HTML in SharePoint 2010.  For additional detail on the topics discussed in this posting, see the references below.

References
Troubleshooting
  • Convert Document option does not appear on the Word document's context menu:
    1. Go: Central Administration > General Application Settings > External Service Connections > Configure document conversions.  The Configure Document Conversion page is displayed.
    2. Verify the following settings:
      • Enable Document Conversions: Yes.
      • Load Balancer Server: [set to a valid load server and not to None]

No comments: