on 11-26-2014 7:57 AM
Hi Experts,
I want to know how to display/edit excel within a UI5 application.I have a oData service returning excel (path).
Have used the below code to open the excel.I want this excel within my UI5 application, however its opening as seperate excel file.
var Excel = null;
var filePath = "http://localhost:54236/OnlineExcelPOC/excel/myexcel.xlsx";
Excel = new ActiveXObject("Excel.Application");
Excel.Visible = true;
var excelBook = Excel.Workbooks;
excelBook .open();
Could anyone please let me know how to achieve this.
Hi,
To open your excel file in editable mode. Try highlighted code
var strLocation = "http://localhost:54236/OnlineExcelPOC/excel/myexcel.xlsx";
var objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = true;
//objExcel.Workbooks.Open(location, isExtrernalReferenceRequired, openInReadOnly);
objExcel.Workbooks.Open(strLocation, false, false);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.