Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Read and write Excel files

$
0
0

I'm using Delphi for mathematical optimization algorithms, but I'm afraid I'm not a seasoned programmer.

First I needed to import data from Excel (about 10.000 rows with 10 columns). I couldn't find how to do that, so I made textfiles from each column and imported those. However, now I need to export a big matrix with pairwise comparisons of those rows (i.e. "array of array" with length 10.000 x 10.000) and get it in an Excel file. To make it more tangible: if all those rows resemble cities, I want to export a table with distances between all cities.

Making 10.000 textfiles for every column and then somehow combining them into an Excel file would be awful of course. So is there an easier way?

I have no experience with SQL/servers/FireDAC, but as far as I can see that might be a possibility (assuming I can get that data to an Excel file). However, this data import/export is not an important process and it doesn't matter whether it's fancy or not. So I rather much prefer an ugly but simple method that gets the job done than something nice but that takes days to program.

Many thanks in advance!


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>