1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00
This commit is contained in:
Sergey Shuchkin
2022-08-06 23:13:06 +06:00
parent aef6ee4935
commit 82b0db1f8e
3 changed files with 15 additions and 0 deletions

View File

@ -768,6 +768,11 @@ class SimpleXLSXGen {
$this->defaultFontSize = $size;
return $this;
}
public function modTemplate( $path, $custom_xml ) {
$t = $this->template[ $path ];
$p = strrpos($t,'</');
return $this->template[ $path ] = substr($t, 0, $p) . $custom_xml . substr($t,$p);
}
public function mergeCells( $range ) {
$this->sheets[$this->curSheet]['mergecells'][] = $range;
return $this;