on 01-20-2014 8:50 AM
Hi,
In my Project I have created one form to display all data regarding Employee.
The Sample structure of Form is like below.
Now my problem is when click on button I want to export this form into Excel Form.
To get the something like this I used below code.
window.open(
'data:application/vnd.ms-excel,'
+ encodeURIComponent($(
'#dvData'
).html()));
I am getting Excel sheet but not in that format.
In my Excel I got two problems.
How to get these Two tables with in Same width ?
How to get the External css also to get the Form like that?
I am getting columns with same width from top to bottom.But in my Form It is totally different. Is it possible to get the Excel sheet like that?
Please help me .
Thanks&Regards
Sridevi
Hi Sridevi,
as far as i know, it's not possible to create such a complex Excel-File with JavaScript. This example shows a typical usage of JSON to CSV conversion: JSON to CSV Converter
If you want to create an Excel-File with additional meta-data or layout-information, you have to implement this with a server-side technology e.g with ABAP.: Excel with SAP - An overview
Regards Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.