PHPOffice is an open-source collection of libraries used for reading and writing files in formats compatible with various "office" suites, such as Microsoft Office and OpenOffice.
Questions tagged [phpoffice]
242 questions
0
votes
1 answer
Class 'ZipArchive' not found in Laravel phpword
I have installed phpword package in my laravel project. Now when I try to read a docx file using this code
public function upload(Request $request){
$file = $request->file('file');
$phpWord = \PhpOffice\PhpWord\IOFactory::load($file);
…

Md. Sahadat Hossain
- 3,210
- 4
- 32
- 55
0
votes
1 answer
Using PHPOffice/PHPSpreadsheet in Joomla
Any experience in getting Joomla to load the PHPOffice classes?
Using Sourcerer in articles to write PHP code and would like to integrate to PHPOffice
0
votes
2 answers
No detect the external library (Phpoffice) in yii2
Two computers are working on the SAME repository but first computer detect the library and work well but second computer not detect it and show "Error 'PhpOffice\Phpspreadsheet\Reader\Xlsx' not found".
In vendor, the library also…

Zoe
- 29
- 1
- 6
0
votes
0 answers
load bigfiles on PHPExcel?
someone else know how load a bigfile on PHPExcel?
too create a big file, because i use a PHP_XLSXWriter. when can create a big files with out overfloat the ram, but i would like know if anyone know if exist another metohd to work with big files on…

Yurley Sánchez
- 37
- 1
0
votes
0 answers
add OLEObject in phpword
i'm trying to add OLE object using PHPWord sample
but no object is added
addSection();
$section->addText('You can open this…

Somaya Momtaz
- 11
- 3
0
votes
2 answers
PHPWord/TemplateProcessor How to make paragraphs
I have text in a with paragraphs, spaces and justied text like this coming from the database.
Hello.
My name is John.
Thank you
But when I use PHP Word with TemplateProcessor to move to a Word document it generates everything without…

Moutinho
- 339
- 8
- 22
0
votes
1 answer
PHPSpreadsheet - Custom Color in Data Series of Chart
Using PHPSpreadsheet to create a custom line graph. I have data loaded into the spreadsheet and it is properly building the graph. However, I am not able to adjust the color of the lines in the graph. When I try to apply a color to my series, the…

karadorde
- 27
- 1
- 4
- 9
0
votes
1 answer
Error while creating Excel file using PHPOffice/SpreadSheet (ZipArchive::close())
I am using PHPOffice/SpreadSheet in Laravel PHP framework. My computer operating system is macOS.
While generating excel file I receive this error
ZipArchive::close(): Failure to create temporary file: No such file or directory
My full code is…

Esmatullah Arifi
- 812
- 3
- 12
- 24
0
votes
0 answers
PHPWord - Can't read docx file
I'm trying to read a docx file using PHPWord, but i'm getting the following error. I can't seem to find a solution to this anywhere:
PHP Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message '"Word2007" is
not a…

Ross
- 66
- 12
0
votes
1 answer
PHPExcel ReadFilter doesnt work
I'm still stuck with symfony2 and phpexcel..
First I don't know why my HTML writer doesn't generate tags..
I don't understand why blanks columns still displaying as you can see on this screenshot, a ReadFilter is applied:
I just want…

Simon Delaunay
- 145
- 1
- 18
0
votes
0 answers
PHPExcel setWidth doesnt work
i convert an excel file to HTML Table with PHPExcel
(PHPspreadsheet) with Symfony 2.5
I'm trying to set a filter to only load the range ('A','N') , the first 13 columns. not working..
I'm also trying to set the Width of the 'N' Column. not…

Simon Delaunay
- 145
- 1
- 18
0
votes
1 answer
phpoffice can´t read xml inside xls
I need to create a script to read XLS and insert into mysql, so I decide to use phpoffice to do it.
The problem comes when inside this xls is a XML and phpoffice can´t read this row.
For example, if you try to read a xls with this…

Agusjar
- 3
- 3
0
votes
0 answers
append Indian currency symbol after export excel sheet using PhpOffice PhpSpreadsheet?
I am working on "export to excel" sheet functionality using "PhpOffice\PhpSpreadsheet" library, till export to excel sheet working fine but My Problem here is that I have a total amount column where I have to add Indian currency symbol. I searched…

Prasad Patel
- 707
- 3
- 16
- 53
0
votes
1 answer
PhpSpreadsheet vs PhpExcel active cell start numbers. What are the correct values?
We were using Excel but now started using Spreadsheet as it is the future.
Recently in our app, i have to make a change,
This is our excel file logic.
FROM
var $excel_start_row_index=1;
var $excel_start_column_index=0;
TO
var…

Jaimin MosLake
- 655
- 1
- 12
- 30
0
votes
1 answer
How to part fill background line phpword
Currently I can set the background fill color for each event I want.
How ever it goes to the full length of the line as shown in this image
Question How can I make it go to the day number like in this image
Code
$results =…
user4419336