<div id="myExcelDiv" style="width: 550px; height: 450px"></div>
<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
* values from your Excel file and how to use the rest of the object model.
*/
// Use this file token to reference Подсчет каллорий.xlsx in Excel's APIs
var fileToken = "SD57C27943B5CD97BB!218/6323750158501517243/t=0&s=0&v=!ALLlqjPm45gsQkg";
// 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 = {
uiOptions: {
showGridlines: false,
showRowColumnHeaders: false
},
interactivityOptions: { }
};
Ewa.EwaControl.loadEwaAsync(fileToken, "myExcelDiv", props, onEwaLoaded);
}
function onEwaLoaded(result) {
/*
* Add code here to interact with the embedded Excel web app.
*/
}
</script>