Demo: Attachment Viewer 2.0 for Lotus Notes


Attachment Viewer 2.0 beta – MS Office Support!

I need some help testing this out. After playing around a little bit with C# and the MS Office integration API’s I was able to compile an executable that calls out to MS Office to show Documents, Presentations, and Spreadsheets. The architecture is pretty straightforward, the attachment viewer calls out to an executable to have the file converted to HTML and then the document is shown in an iframe in the viewer. I have seen some minor issues and thankfully no crashes.

This version is also Dojo enabled and currently needs to have internet access in order for it to work since I pull Dojo 1.5 from the Google CDN. You will notice the Dojo toolbar and the different view modes – Film Strip, Slide Show, Thumbnails:


Installation Instructions:

  • If you have a 1.0 version of the attachment viewer installed, please make sure you uninstall it first.
  • Once you have the older version installed you can drap and drop the icon below to your My Widgets panel to have the new Eclipse plugins installed.

Drag this to My Widgets in Lotus Notes

  • You may also need to set the preference for the viewer under File | Preferences:

Once I get some good feedback I will be posting the binaries and sources to the OpenNTF project.

Some known issues:

  • The thumbnail view does not show the last image as a thumb
  • Sometimes the MS Office link is broken, a restart or shutting down MS Office may be needed.

In advance, thanks for all of your feedback and interest in this project!

One viewer to rule them all!

I have gotten tons of feedback on this site, in email, and from colleagues for how to support Office (both ODF and MS Office) attachment viewing with the OpenNTF Attachment Viewer project.  I put together a small demo of an interesting technique for supporting different kinds of viewers.  The idea is to make it preference based or hopefully, in the end, through some kind of automated way in code.  The first stab is of course a preference.  Check out the preference screen:

Suggested preference screen

I currently have two converters, with one more possibly on the way (Symphony or OpenOffice using UNO API’s).  The two current ones are very different indeed.  For the first one,  I am using some code borrowed from the Quickr team that converts basically anything to HTML.  It uses the KeyView technology that has been in the Notes client for a long time.  The second viewer, (the Microsoft Converter), is one that I coded while playing around with C# and the MS Office Interop API’s.  The biggest difference, outside of the output, is the one written in C# relies on Microsoft Office to be installed and that the Interop API’s also be installed – which I believe are by default, still have to verify that.  So if you have M$ Licenses then the C# converter might be for you.  If not, the KeyView one does in fact ship with Notes – ie. FREE!

In the video you can see I just put the output HTML from the local server into an iFrame to keep the full fidelity of the converters output.  I am actually still working through a few selection issues but for the most part it works pretty well.  The KeyView converter does not convert the files as nicely as the other viewer but it does a good enough job for preview.

Continue reading