Commit e69c016b authored by Elias Villiger's avatar Elias Villiger
Browse files

Fix Excel Export

parent fc36c9fd
Pipeline #730 passed with stage
in 1 minute and 55 seconds
......@@ -6380,11 +6380,11 @@ Setup
+-------------+----------------+---------------------------------------------------------------------------------------------------+
| 'newline' | newline | Start a new row. The column will be the one of the last 'position' statement. |
+-------------+----------------+---------------------------------------------------------------------------------------------------+
| 'str', 's' | s=hello world | Set the given string on the given position. The current position will be shiftet one to the right |
| 'str', 's' | s=hello world | Set the given string on the given position. The current position will be shifted one to the right |
+-------------+----------------+---------------------------------------------------------------------------------------------------+
| 'f' | f==SUM(A5:C6) | Set a formular on the given position. The current position will be shiftet one to the right |
| 'f' | f==SUM(A5:C6) | Set a formula on the given position. The current position will be shifted one to the right |
+-------------+----------------+---------------------------------------------------------------------------------------------------+
| 'n' | n=123 | Set number on the given position. The current position will be shiftet one to the right |
| 'n' | n=123 | Set number on the given position. The current position will be shifted one to the right |
+-------------+----------------+---------------------------------------------------------------------------------------------------+
Create a output like this: ::
......@@ -6407,7 +6407,7 @@ In Report Syntax: ::
's=First Line' AS _XLS,
'newline' AS _XLS,
's=Second line' AS _XLS,
'n=123' AS _XLS,
'n=123' AS _XLS
.. _drag_and_drop:
......
......@@ -96,7 +96,7 @@ class OnString {
*/
public static function splitExcelPos($pos, &$column, &$row){
preg_match_all('/(\w)|(\d)/', $pos, $matches);
preg_match_all('/[A-Z]+|\d+/', $pos, $matches);
if(count($matches[0])!=2) {
return false;
......
......@@ -25,7 +25,7 @@ require_once(__DIR__ . '/../helper/HelperFile.php');
require_once(__DIR__ . '/../exceptions/DownloadException.php');
//require_once(__DIR__ . '/../Evaluate.php');
//require_once(__DIR__ . '/../helper/KeyValueStringParser.php');
//require __DIR__ . '/../../../Resources/Private/vendor/autoload.php';
require __DIR__ . '/../../../Resources/Private/vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment