Comments (5)
I have released the v1.0.14. I hope it will work.
from php-excel-templator.
Hello.
Please, leave the full code and xls-template file to easily reproduce the bug.
from php-excel-templator.
`
require 'vendor/autoload.php';
use alhimik1986\PhpExcelTemplator\PhpExcelTemplator;
$documentData = [
'[lineNumber]' => [
1, 2, 3
],
'[descriptions]' => [
'Description 1',
'Description 2',
'Description 3',
],
'[price]' => [
2, 3, 4
],
];
$template = 'template/template.xlsx';
$outputPath = 'output/output.php';
PhpExcelTemplator::saveToFile(
$template,
$outputPath,
$documentData
);
`
The template content is this one.
from php-excel-templator.
I couldn't reproduce the bug. Everything working well. At least it worked on my old code.
I corrected the require_once('vendor/autoload.php');
to require( __DIR__ . '/../Bootstrap.php');
and the $outputPath = 'output.php';
to $outputPath = 'output.xlsx';
because the code just not launching.
Update:
I have adapted my code for modern PhpSpreadsheet.
Try to update the templator to latest version.
from php-excel-templator.
I've updated it in repl,
Repl
Can you please recheck it there?
from php-excel-templator.
Related Issues (20)
- Small bug fix - BEFORE_SAVE proposal
- how can I use the template not from a file, but from DB blob field? HOT 1
- PhpSpreadsheet introduced a breaking change in 1.13.0 HOT 3
- Comments in english HOT 1
- Double header : open in 2 times with firefox 77.0.0 HOT 1
- No graph saved HOT 1
- [feature] Allow export graph HOT 2
- too many rows HOT 4
- Группировка строк и/или колонок
- Generate the result within the brackets []
- Загрузка изображений в ячейку. HOT 1
- Заполнение статичных данных в таблице. HOT 4
- Добавление символов в ячейку шаблона с идентификатором массива HOT 1
- Cells pushed down after first table
- Formula cells have their contents changed
- Изменить высоту всего ряда в зависимости от значения в ячейке HOT 2
- Option for CellSetterArrayValueSpecial to fill down formulas alongside it HOT 2
- Вставляются пустые строки HOT 3
- После сохранения файла эксель восстанавливает ошибки HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-excel-templator.