This page shows how rollMyFile.js API can be used to open documents in applications that is running "embedded" into a page of another web application.
Load Document
Load Spreadsheet