php - php_excel07- how to replicate the properties of one row to next row -
my application needs export xlsx, using php_excel07. working fine facing small issue, lik this: "i want replicate properties of row next row". ex if have row num 1 predefined height, width, color , borders,etc..then these same properties of row1 have replicated next row i.e, row2..is there anyway this.
without knowing details of styling: manually read appropriate properties first row/the cells of first row, , set them in second. there no explicit method provided clone styles 1 row another.
however, if cells in first row identical, can apply style range of cells rather having individually.
personally, build style arrays can replicate need them.
the worksheet methods:
duplicatestyle() duplicatestylearray()
and style method:
applyfromarray()
can of use.
Comments
Post a Comment