Create MS Office Reports on the Domino Server Using Office Web Components

Kenneth Haggman


September, 2009


You can create Microsoft Office reports of Domino data using code that runs on the Domino server, and you can do it without having to install the complete Microsoft Office package on the same machine as Domino. Discover how to use Microsoft Office Web Components (OWC) to produce spreadsheets and charts that can be opened directly by Microsoft Excel.


Reporting is an ever-present requirement for many IBM Notes and Domino systems, despite the lack of a strong native reporting capability. For Notes and Domino developers who rely on LotusScript code interacting with Microsoft Office via the Component Object Model (COM), the drawback is that the code has to execute on the Notes client. That can tie up the client for hours if the report-producing code has to read large amounts of data or if there are many reports to produce.
It would be better if you could create the reports using scheduled agents on a Domino server, but then Office components would have to be installed on the server. Domino administrators are unlikely to install Office on the same machine as Domino, partly for security reasons as well as licensing requirements, possible performance problems, and perhaps even disk space issues. And even if Office were installed on the server, your code would likely have all sorts of problems, such as unexplainable crashes and memory leaks, for example. In fact, Microsoft does not recommend using Object Linking and Embedding (OLE) Automation on the server. (OLE Automation is an older name for COM.)
Microsoft Office Web Components (OWC) is a powerful alternative that may be just what you need to produce your reports. OWC is a set of OLE components implemented as ActiveX controls. OWC is capable of producing spreadsheets and charts from code running on your Domino servers for perusal by Notes client users. Because these controls are lightweight, they don’t have the same impact on the server as the full Office package and are therefore safe to use.
I will show you how to install OWC on the server and use server-based LotusScript agents to produce OWC spreadsheets that are ready for viewing with Office applications on your users’ PCs. I will also show you a client-based alternative that may be good enough for your reporting needs — how to use embedded OWC controls on Notes forms.
OWC is supported in Microsoft Office 2000, Office XP, and Office 2003, but don’t be put off by the fact that the most recent version of Office with support for OWC is Office 2003. Reports created as XML files using the OWC package for Office XP will open just fine with later versions of Microsoft Office.
Note!
If you want to integrate Office components into Domino Web forms, I recommend reading “8 Techniques for Creating Dynamic, Interactive Domino Applications Using MS Office Web Components" by Larry Palm (THE VIEW, July/August 2001). That article thoroughly explains OWC and details several ways to use and integrate OWC into Domino Web applications.

Would you like to see the full version of this article?

If you are an electronic license holder to THE VIEW, please log in to view this article.

If you would like information about becoming an electronic license holder — and having 24/7 unrestricted access to all articles and content in THE VIEW Online Knowledgebase — click here to see the available subscription options.

Or call 1-781-751-8813 to speak directly with a subscription and licensing specialist about customized access for you and your team.