Skip to content

Example for inserting row/columns incomplete.  #1203

@sidoitsu48

Description

@sidoitsu48

This is:

- [] a bug report
- [x] a feature request
- [] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

In the Calculation Engine section in the documentation you start with an inserting row example. The column 'E' contains obvious formula with reverences like 'E5': '=C5*D5'. With insertNewRowBefore you insert an empty row and copy the styles which is ok but you stop at the most important point filling the new empty cells with information. Means copy the 'E6' to 'E7' and update the references. I know there is a ReferenzHelper but I do not find an example how to integrate it in the code. It would useful for people who must work with excel templates.

What is the expected behavior?

What is the current behavior?

What are the steps to reproduce?

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

require __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();

// add code that show the issue here...

Which versions of PhpSpreadsheet and PHP are affected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions