L
L
Leonid2021-09-14 13:06:29
Delphi
Leonid, 2021-09-14 13:06:29

How to copy data from excel?

There is a standard task to raise the Excel as ole Automation and read the data.

The problem is that the excel is very large. You need to copy the data from range into a two-dimensional ansistring array.
Walking through the cells in a cycle is very slow.
Is there any way to recopy the data in one fell swoop (only in string and not olevariant)
Well, like a copy-paste vyklenuyu area from Excel.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
Hemul GM, 2021-09-14
@caballero

From free https://github.com/ms301/Excel4Delphi

K
Konstantin Tsvetkov, 2021-09-14
@tsklab

the standard task is to raise the excel like ole automation and read the data
Can be used OLE DBbefore Delphi, in the intermediate layer. And work through TADOConnection.
Create udl file
6140b8c6997e3245963699.png

O
OCTAGRAM, 2021-09-14
@OCTAGRAM

You can use OLE to save the entire document or part of it in CSV format, and read it quickly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question