ng-csv icon indicating copy to clipboard operation
ng-csv copied to clipboard

[Help] How can I generate two tabs/worksheets for excel?

Open prady00 opened this issue 9 years ago • 10 comments

prady00 avatar Mar 30 '15 14:03 prady00

This library is for making csv files and not excel file, i dont think their is any library for angular to convert json to excel

rajansoft1 avatar Mar 30 '15 18:03 rajansoft1

I want to export multiple csv files as a zip/rar on a button/anchor click ... how can i do that? I tried passing an array of arrays in ng-csv directive but it didn't work. please help.

ghost avatar Jun 15 '15 10:06 ghost

@asafdav I have modified the code to be able to generate multiple tables by passing an object. The object is format like this: var object = { array1: [ ], array2: []} I finished the implementation and unit test for the multi-csv feature. It's in my repo on the multicsv branch. Let me know what you think !

shaohaolin avatar Oct 16 '15 13:10 shaohaolin

Hi, can you add a test case and pull request? I'll checkout locally and test it

On Fri, Oct 16, 2015 at 4:29 PM, Shaohao [email protected] wrote:

@asafdav https://github.com/asafdav I have modified the code to be able to generate multiple tables by passing an object. The object is format like this: var object = { array1: [ ], array2: []} I wonder how I can do a demon for you?

— Reply to this email directly or view it on GitHub https://github.com/asafdav/ng-csv/issues/90#issuecomment-148716634.

asafdav avatar Oct 18 '15 07:10 asafdav

So I cannot export more than one table at this point. Is that right? If it is, is there some work around so that I can include some meta info such as filters applied etc at the top of the table/sheet?

codingquark avatar Mar 11 '16 04:03 codingquark

I have solved it by using a callback for ng-csv Ability to format the data however we want is useful. :)

codingquark avatar Mar 13 '16 14:03 codingquark

i have also same issue can u please tell me!!

DeepzSandra avatar Aug 11 '16 11:08 DeepzSandra

@asafdav @shaohaolin Has the feature to export multiple tabs to CSV format been added? I'd like them to be able to open it in Google Sheets or something with:

col1  |  col2 |       col3  |      col4
-------------------------------------
1          4           7           10
2          5           8           11
3          6           9           12

-------------------------------------
[<current> csv sheet 1]  [csv sheet 2]  [csv sheet n] 

dtturcotte avatar Feb 09 '18 05:02 dtturcotte

@shaohaolin I cherry picked your updates for multi CSV. It doesn't create multiple tabs, nor does it take into account separate Header sets per dataset. Any updates there?

dtturcotte avatar Feb 09 '18 06:02 dtturcotte

Hi , I am also looking for same feature multi csv, any updates?How do we achieve it?

aarchsk avatar Sep 07 '18 19:09 aarchsk