Page 1 of 1

Copy Sheet/Data/Cell from one file to another?

Posted: Tue Nov 05, 2013 8:22 pm
by Anonymous47
Hi,

how do i copy cells or rows from one Excel file to another, including formulas und formattings?

Excample:

var
XLS1, XLS2 : TXLSReadWriteII5;

begin
XLS1.LoadFromFile('file1.xlsx');
XLS2.LoadFromFile('file2.xlsx');

for XLS1[0].FirstRow to XLS1[0].LastRow do
begin

// how to copy the rows to XLS2[0] ?


end;

end;

Thanks.

Re: Copy Sheet/Data/Cell from one file to another?

Posted: Fri Nov 08, 2013 6:54 am
by Anonymous47
No help? Bad!

Re: Copy Sheet/Data/Cell from one file to another?

Posted: Fri Nov 08, 2013 12:16 pm
by larsa
Hello

Sorry for taking some time to answer but I had a crashed computer to take care of.

It's not possible to copy between different instances of components right now. This will be added in update 5.20.07, ready by the beginning of next week. Use DestXLS.CopyCells(SrcXLS,...) or DestXLS.CopySheet(SrcXLS,...)