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.


Short URL: http://bit.ly/YhwVlN

Leave a Reply