Hi ThinkBox,
Are you sure that the DispEx method actually returns the OWA url for you?
It doesnt work here. If you look at the HTML source of a document library where OWA is activated, the following method is actually called when clicking on the document is this:
<a onfocus="OnLink(this)" href="[filename]" onmousedown="return VerifyHref(this,event,'1','SharePoint.OpenDocuments','1http://localhost/_layouts/WordViewer.aspx?id=/Documents/sdfsdfsdf.docx')" onclick="return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','1','SharePoint.OpenDocuments','','1http://localhost/_layouts/WordViewer.aspx?id=[filename]','','1','0','0','0x7fffffffffffffff','','')">sdfsdfsdf</a>
As you can see, you actually need to provide the URL to WordViewer.aspx in the link. It's this that I need to render on the server side (and the equivalent for powerpoint, onenote and excel viewer), based on the list item URL.
/Christoffer