Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
December 2, 2013 at 11:12 am #195238
With Excel Web app we can embed spreadsheets. This gives huge possibilities to creat i.e web based calculators. Excel offers HTML embed code (works) and an Java Script code (doesn’t work). Can anyone tell me why this JS won’t work:
I´ll pay for solutions…Iframe embed
<iframe width="211" height="252" frameborder="0" scrolling="no" src="https://skydrive.live.com/embed?cid=DC6847B853F9E695&resid=DC6847B853F9E695%21119&authkey=&em=2&AllowTyping=True&Item='Ark1'!Utskriftsomr%C3%A5de"></iframe>
JS embed
<div id="myExcelDiv" style="width: 211px; height: 252px"></div> <script type="text/javascript" src="http://r.office.microsoft.com/r/rlidExcelWLJS?v=1&kip=1"></script> <script type="text/javascript"> /* * This code uses the Microsoft Office Excel Javascript object model to programmatically insert the * Excel Web App into a div with id=myExcelDiv. The full API is documented at * http://msdn.microsoft.com/nb-NO/library/hh315812.aspx. There you can find out how to programmatically get * values from your Excel file and how to use the rest of the object model. */ // Use this file token to reference Kg pris kalk.xlsx in Excel's APIs var fileToken = "SDDC6847B853F9E695!119/-2564721130779056491/"; // run the Excel load handler on page load if (window.attachEvent) { window.attachEvent("onload", loadEwaOnPageLoad); } else { window.addEventListener("DOMContentLoaded", loadEwaOnPageLoad, false); } function loadEwaOnPageLoad() { var props = { item: "'Ark1'!Utskriftsområde", uiOptions: { showDownloadButton: false }, interactivityOptions: { } }; Ewa.EwaControl.loadEwaAsync(fileToken, "myExcelDiv", props, onEwaLoaded); } function onEwaLoaded(result) { /* * Add code here to interact with the embedded Excel web app. * Find out more at http://msdn.microsoft.com/nb-NO/library/hh315812.aspx. */ } </script>
December 2, 2013 at 11:26 pm #195539Hello!
Does it work while the default WordPress theme?. If you want a paid solution you can request a quote here.
Cheers!
Josue -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Excel Web app embed codes’ is closed to new replies.