Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PivotTable Data Export In Excel Download #55

Open
Kishan1824 opened this issue Dec 8, 2017 · 10 comments
Open

PivotTable Data Export In Excel Download #55

Kishan1824 opened this issue Dec 8, 2017 · 10 comments

Comments

@Kishan1824
Copy link

@nagarajanchinnasamy

We need to export pivot data in excel without those expand/collapse arrow & with all table border as it shown in html.

Waiting for positive reply.

@nagarajanchinnasamy
Copy link
Owner

@KishanManali1824 could you pls explain how you are exporting the data. Thanks.

@Kishan1824
Copy link
Author

@nagarajanchinnasamy

Here is my code that currently i am using to export to excel.

var uri = 'data:application/vnd.ms-excel;base64,',
template = '

{table}
',
base64 = function (s) { return $window.btoa(unescape(encodeURIComponent(s))); },
format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }) };

function (tableId, worksheetName) {
var table = $(tableId),
ctx = { worksheet: worksheetName, table: table.html() },
href = uri + base64(format(template, ctx));
return href;
}
Waiting for positive reply.

@Kishan1824
Copy link
Author

@nagarajanchinnasamy

Please give any update.
Waiting for positive reply.

@nagarajanchinnasamy
Copy link
Owner

@KishanManali1824

You basically are downloading the outer html of the pivot table element. By this method, i dont think you can eliminate the arrows in labels.

We need to think of another method. Right now am not clear what would that be!!!

@Kishan1824
Copy link
Author

Kishan1824 commented Dec 15, 2017 via email

@nagarajanchinnasamy
Copy link
Owner

@KishanManali1824

After getting the outer html, u can search n remove arrows. Hope that helps :-)

@Kishan1824
Copy link
Author

@nagarajanchinnasamy

Ok.Will Check it.

@Kishan1824
Copy link
Author

Kishan1824 commented May 2, 2018

actualreportdata

actualreportdata

Please see the difference between two image of my report.
In actual print its ok, but when i export that report in excel, it looks like in given image.
Please help in this issue.

Waiting for positive reply.

@Kishan1824
Copy link
Author

Respected @nagarajanchinnasamy

Please help in this issue...
Waiting for positive reply.

@Kishan1824
Copy link
Author

@nagarajanchinnasamy

Respected sir,
Please provide any input in this issue..
Its been very important one in this development.

Waiting for positive reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants