1

i have 7 grids and i need to export them to an Excel file. It can be done putting each one on a sheet or all of them in the same sheet but I don't have a single clue in how to achieve this.

Can someone give me an advise?

1
  • Please do some research into creating excel files and when you have some real live code problems you will get plenty of help then. There are libraries available for both client and server. Question is just far too broad currently Commented Sep 24, 2015 at 21:00

1 Answer 1

1

Why not get the data from grids into arrays, then use .join function to make strings from arrays, to convert it to CSV format. It is not the main .xls(x) format, but close enough.

For example, if you have an array:

var myArray = ["Peter", "21", "2005"]
var myString = myArray.join(",")

Then myString will be "Peter,21,2005", which is exactly CSV format.

Now just open the file with excel and you have it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.