Introduction
Word 2003 XML Viewer Control
is ASP.NET 2.0 Web server control, which allows to publish Microsoft Word 2003 XML documents (aka WordML or WordprocessingML) on the web
so people not having Microsoft Office 2003 installed can browse documents using only a browser.
The control renders Word 2003 XML documents by transforming content to HTML preserving styling and extracting images. Both Internet Explorer and Firefox are supported.
Word 2003 XML Viewer Control is basically Web version of the Microsoft Word 2003 XML Viewer tool and uses the same WordML to HTML transformation stylesheet thus providing the same rendering quality.
The control is free open-source software subject to the BSD license
and is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
either express or implied. You can use it for any commercial or
noncommercial purposes, including distributing derivative works.
Download the Word 2003 XML Viewer Control from the Downloads page.
Installation
We provide no installation for the Word 2003 XML Viewer Control currently. Just download the latest release and unzip it into a folder of your choice.
The installation folder consists of:
- "bin" folder - contains Word 2003 XML Viewer Control dll and other required files
- "src" folder - contains Word 2003 XML Viewer Control sources
- README.txt - short introduction to the Word 2003 XML Viewer Control
- license.txt - the Word 2003 XML Viewer Control license agreement
Adding the control to the Visual Studio toolbox
You need to add Word 2003 XML Viewer Control to the
Visual Studio toolbox to be able drag and drop it into your Web forms
in design mode. Here is how you can do it:
- Open the toolbox (if it's not visible, click View/Toolbox).
- Expand the General section.
- Drag and drop XMLLab.WordXMLViewer.dll file from the "bin" folder into the General section surface.
- The Word 2003 XML Viewer Control should appear on the toolbox.
Usage
Drop Word 2003 XML Viewer Control from the toolbox to your Web form.
When you are adding the first Word 2003 XML Viewer Control in your Web project, you should see the following confirmation dialog: "Do you want to automatically register the HttpHandler needed by this control in the web.config?". You must answer Yes to allow the control to register image handler in the Web.config. If don't answer Yes or if you add the control not in Design mode, you have to add the following definition to the Web.config in the <system.web> section:
<httpHandlers>
<add path="image.ashx" verb="*" type="XMLLab.WordXMLViewer.ImageHandler, XMLLab.WordXMLViewer" />
</httpHandlers>
Word 2003 XML Viewer Control currently has a single property "DocumentSource", which is Word 2003 XML document file name. Assign to it full name of the document you want to show.
Feedback
Any comments, feature requests and bug reports are welcome at the forum.