Is it possible to create a .xls file through iOS programmatically?

How to generate a .xls file programmatically through my iPhone?

+6
source share
4 answers

If you just want to put the tabular data in a spreadsheet, just generate a .CSV file that can be directly read in EXCEL.

If you want a full-featured spreadsheet with multiple sheets, formulas, formats, inserted objects, pictures, diagrams, etc., as far as I know, there is no solution for the iPhone, since Microsoft does not provide the equivalent of its ActiveX Excel component.

If your requirements lie between them, you can try some alternatives. Take a look at Google Docs or QuickOffice.

I do not recommend you try to generate full XLS from scratch if there is too much dificult.

+3
source

I have an alternative solution for you.

It is easy to create a CSV file (comma seperated value) using code, then this CSV file can be opened with MS Excel in xls format.

+2
source

I have not looked for third-party libraries about this before, but at least it is possible (but not simple) that you yourself generate XLS files in the XLS file format specification:

0
source

Create an HTML table if you need to view it on your phone; in general, xls is a poor choice for a data exchange format.

0
source

Source: https://habr.com/ru/post/915362/


All Articles