Open kachkaev opened 11 years ago
:+1: Is there a known solution to this ?
Rly need this
+1
+1 as well.
After 4 years, this is still missing. I need this as well..
Sadly it's not something that is easy to do.
On Dec 13, 2017 11:22 PM, "Yuri Sarzi" notifications@github.com wrote:
After 4 years, this is still missing. I need this as well..
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PHPOffice/PHPExcel/issues/180#issuecomment-351629021, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7q0WGibdGn9apuVdDXDHV2WbzGFpgwks5tAMycgaJpZM4AqSdk .
+1, halp
It would be very helpful to have an opportunity to duplicate entire rows and columns. Doing so is a commonly needed operation, but it’s not trivial as it may look at first sight. The process includes:
I believe that the interface of one of the methods could look like this:
It is important to be able to copy several columns / rows at once because they may contain merged cells, which need to remain merged in the copy. Probably an ability to create a number of copies is even less important because it is possible to do so in a loop. However, doing multiple copies at once may improve the performance. One of the things to watch out for is that the $insertBefore should not be within the given $sourceColumnRange, otherwise it will break the integrity of columns and rows being copied.
I tried to implement this functionality myself, but simply could not overcome a number of problems. It would be great if someone knowledgeable enough in the library internals could put some effort in adding such feature, because it’s crucial for many dynamic reports generated with PHPExcel.