CSV file appearing in tabular form in iOS 11 - ios

I am a newbie in iOS. My application has option to download data from database into Excel or CSV format. The Excel option is working fine but when I select the "Download in CSV Format" option, it is downloading the data and displaying it in a tabular format, much similar to excel.
I checked in the browser of the device and there also the CSV file is shown in tabular format.
I would like to know, is this a feature in iOS 11, to display CSV in table format, rather than the normal single-line form in older versions?

Related

Having an issue uploading csv file to my parse app

I’m having an issue uploading my the attached csv file to my parse app. It says :
line 22515, column 0: wrong number of fields in line
for every upload I do. Including when I upload a slightly smaller csv file (which ironically doesn't have a line 22515 in it).
Any tips/help?
I think 22k is the max excel rows limit in old excel versions I believe till 2010, maybe that has something to do with this...

how to write data to an Excel file in iOS App?

I found a sample project named DHlibxls could read file from Excel.
But... the problem is, I wanna write data to Excel file.
My idea is store an excel file template in the app, and write data to the excel file by actions user did in the app and thus create a new excel file for emailing..
PS: Don't urge me to convert to CSV or other format, the client's tough and he insists on the excel format.

importing Chinese characters into sqlite database

how do i import chinese text into an sqlite database?
I have used Google translate to generate all my android applications text, then saved in open office calc csv file.
the csv file shows all the chinese characters correctly
when i come to import this data i end up with ? instead of the chinese characters. I've tried using Sqlite database browser 2.0, sqlite adim, and sqlite manager. I still cannot import the complete text as i see them displayed in Google Translate.
what sqlite tool/utility and character set combination actually works and imports all chinese characters without ? appearing?

Export data to XLS (not via CSV) on iOS

I need to export some data to an .XLS file, pdf, and print.
I already tried the simple solution: exporting it to .CSV with CHCSVWriter. It works for printing and saving it to pdf (I open the CSV in a UIWebView and get the PDF or print from there). However, to use the CSV to be open in excel has two main problems:
1 - First, as the name says, in the CSV the values are separated by commas, and in some versions of Excel, it requires the user to separate 'manually' in cells.
2 - I have hebrew characters, and I already tried all the string encodings, and can't have both hebrew and latin characters.
So, after giving up after days of trying to use CSV to solve the issues above, I gave up. How can I export my data to XLS?
The LibXL library provides this functionality for both xls and xlsx formats. There is no iOS version, but people say the iOS version is coming. You may want to contact LibXL support to confirm this.
EDIT:
The iOS version is available now.
This article explains how to programmatically create an Excel (.xls) file without using any external library. It just opens a file stream and it writes XML contents straight to it.
It is written in C#, but the core information coming out of it is the XML formatting used to create nodes and fill attributes for corresponding cell values and formatting.
Please consider I have not tried this myself, I found it while doing a search. Please feel free to ask if some C# bits are not clear. HTH

Programmatically load CSV file into Excel Worksheet (Delphi 7)

I have a large amount of data to insert into an worksheet of an existing Excel workbook. The Excel workbook will have other worksheets containing calculations and a pivot tables. The data may have as many as 60,000 rows and more than 30 columns. This solution must work for both Excel 2003 and Excel 2007.
Using the Excel OLE object is way too slow so we are attempting to load the data from a CSV file. We have come up with a method to load the data by placing the data onto the clipboard and then pasting it into the worksheet. I feel this is a quite a kludge. Is there another way to programmatically load a CSV file into a worksheet? Or perhaps a different solution altogether?
Update: We got slammed with another task before we could fully investigate the answers. We should be able to get back to this in a couple of weeks. I'll be sure to update again when we get back to this task.
Thanks for all of the answers to date!
XLSReadWrite is a component that can read and write excel files from Delphi. It's fast and it has support for Excel 2003 and 2007. You can create new excel files as well as open existing ones and add/modify them.
Also you do not need to have Excel installed to be able to use it.
See http://www.axolot.com/components/xlsrwii20.htm
Any chance you can drop the requirement for this to work with Office 2003? I would have recommended the Open XML Format SDK. It lets you bind managed code assemblies to spreadsheet documents that can handle events such as Open or Close, and read and write to cells in the document, among other things. Alternatively, you can use it to manipulate XSLX documents from an application. Quite slick, actually.
Since this won't work for you, how about writing a macro that pulls in the CSV file when the spreadsheet is loaded?
you can load the csv into listview or usin OLEDB provider to load it on DBGrid, then export it into xls file format using TMxExport component from Max Components:
Max Components
Have you tried linking the csv file directly into the worksheet.
Go to Data -> Import External Data -> Import Data
change the file type to 'Text Files'
You can then refresh the worksheet when the csv is update.
NOTE: I have not done this with the volume of data you have indicated, so YMMV
Actually there is a way that is quite fast, pretty old tech (nowdays) but is probably the fastest.
It's ADO or for earlier versions DAO (note not ADO.NET)
You can read a CSV file using ADO and the JET Engine to get the data into a ADO recordset, then an Excel Range Object has a CopyFromRecordSet method that will copy (very fast) from the ADO (or DAO) recordset.
http://msdn.microsoft.com/en-us/library/aa165427(office.10).aspx
You can try to use Tab Separated Values instead of CSV - than you just paste this into Excel :)

Resources