Archive for September, 2007

MOSS 2007: Configure Document Conversion for your server

September 13th, 2007 by Tobias Zimmergren

Author: Tobias Zimmergren
Url:
http://www.zimmergren.net

I recently bumped into a challenge where I had to make it possible for people to convert their Word, Excel, InfoPath or other documents to a web page for display in your SharePoint 2007 installation. After a few minutes of informationgathering I realized that i could actually make it very simple for myself by using the Document Conversion functionality offered by Microsoft Office SharePoint Server 2007 Enterprise.

Below is a step by step instruction on how to configure and enable Document Conversion as well as how you will publish and convert a document from e.g. Microsoft Office Word 2007.

Configuring Document Conversion

  1. Navigate to Central Administration of your SharePoint installation
  2. Click on the tab called Operations
  3. Locate the section Topology And Services and click Services On Server
  4. Start the following two services:
    1. Document Conversions Load Balancer Service
    2. Document Conversions Launcher Service
  5. Choose a load-balancing server and finally set a port-number it should run on.
  6. Click OK - It should state that the services are Started
    documentconversion1
  7. Navigate to the Application Management tab
  8. Locate the section called External Service Connections and click Document conversions
  9. Choose to enable conversion for this site
  10. Choose a load-balancing server
    documentconversion2
  11. Click OK

Convert a document to a Web Page

  1. Launch e.g. Microsoft Office Word 2007
  2. Either choose to create a new document and fill it with some information, or open an existing one
  3. Publish it to a Document Library of your likings by choosing:
    1. The big round Office-button
    2. Publish
    3. Document management server
      documentconversion3

    4. Enter your portal url: e.g. http://moss-portal/, hit enter, then use the interface to navigate to a Document Library
      documentconversion4
      1. Save document and Exit Microsoft Office Word 2007
  4. Navigate to your Document Library
  5. Choose Convert Document in the drop down
  6. Choose From Work Document to WebPage
    documentconversion5

  7. Enter a title of the page
    documentconversion6
  8. Click Create

Viola! You should now have a newly generated .aspx page published on your site, created from the Word document you chose.

documentconversion7

Thanks for your time.
Cheers

Author: Tobias Zimmergren
Url:
http://www.zimmergren.net

In one of my previous blogposts I wrote about how you easily could alter the XSLT of a the Search Core Results Web Part on your Search Results Page in order to achieve a customization to the presentation of the output.

In this article I will scratch on the surface of some more XSLT and show you how you can implement the HitHighligting Template in order to achieve colored/customized display of the search words you entered.

What is the HitHighligting Template?

Well, basically the HitHighligting template offers you the ability to highlight words that are used in your search. It offers you the possibility to highlight words in the following three result sections: Title, Url and Description (And that’s basically all you need, mostly)

 searchresultstwo1

Study the following XSLT, as per MSDN:

<hithighlightedsummary>
  <c0>SharePoint</c0> <c1>namespace</c1> provides types and members that can be used for working with a <c0>SharePoint</c0> site  <ddd /> a top-level <c2>class</c2> that represents a <c0>SharePoint</c0> site and provides access to its collection of subsites <ddd /> <c0>SharePoint</c0> <c1>namespace</c1> and a brief description of each.
</hithighlightedsummary>
<hithighlightedproperties>
  <HHTitle>Microsoft.<c0>SharePoint</c0> <c1>Namespace</c1></HHTitle>
  <HHUrl>
http://msdn.microsoft.com/library/default.asp?url=/library/en-     us/spptsdk/html/tsnsMicrosoft<c0>SharePoint</c0>_SV01017995.asp</HHUrl>
</hithighlightedproperties>

You may notice that the sections hithighlightedsummary, HHtitle and HHUrl elements contain childs (<c0>,<c1> etc). This basically means that for each instance of the words entered in your search, you get a set of highlight-tags that encloses that word. This is the default behaviour of the SharePoint Search. First word gets <c0>, second word gets <c1> and so on…

How do I add the Highlighting functionality?

Note: If you do not know how to access the XSLT of the Search Core Results Web Part, view my previous post on the subject.

In order to customize the presentation of the search result and make your words highlighted, you basically only need to add some tags to the XSL-template for each search word you want to highlight as you can see in the screenshot below.

Now locate the following section in your Search Core Results Web Part (It already exist):

<xsl:template name="Hithightlighting">

And since this template exists from the beginning, all you really have to do is to customize the style attribute and add a color property of the <b> tag (I replaced it with a <strong> tag instead, for sake of standards)
Then you can simply specify the styles for each highlighted word as picted in the following screenshot:

 searchresultstwo2

It’s simple as that. I hope this helped some of you to get started on some basic Search Core Results XSLT customizations.