Questions tagged [phpspreadsheet]

PhpSpreadsheet is a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file formats, like Excel and LibreOffice Calc.

See:

859 questions
0
votes
1 answer

A non-numeric value encountered getCalculatedValue

I'm having trouble saving the file xlsx when the data has function [E22] = PMT (D20 / 12, D19, -E23, D7.0) environment: laravel 5.8 php 7.1 phpoffice/phpspreadsheet [1.7.0] - 2019-05-26 public function gen_file_download_tt(&$result) { …
Hưng Trịnh
  • 947
  • 1
  • 12
  • 23
0
votes
2 answers

Download PHPSpreedsheet excel file ends with corrupted file

I use the PhpSpreadsheet library to create a xls and download it but the file is corrupted. The xls will be written in the output stream, no file is created. I tried to create an empty spreadsheet and it fails. You can see it in the following code…
MichaB
  • 495
  • 7
  • 20
0
votes
2 answers

Count total rows and columns from SpreadsheetReader

I have written code to import data from excel sheet and for that I want to count total number of rows and columns. I am using this SpreadsheetReader library. Here is my code: $uploadFilePath =…
Shreya
  • 1
  • 1
0
votes
2 answers

PhpSpreadsheet cell validation rules to disallow invalid entry

I am using PhpSpreadsheet within a Laravel app to output a spreadsheet that needs fairly strict controls around it in order to allow that same spreadsheet to be input back into the app after data has been entered. I can control the data types and…
Watercayman
  • 7,970
  • 10
  • 31
  • 49
0
votes
1 answer

Styling excel in Laravel with Laravel Excel

Learning Laravel, I face now Excel export. Searching in the Intenet Laravel Excel (docs.laravel-excel.com) seems to be the better choice, but I'm findind it very difficult to style the sheets (colors, fonts, sizes, etc.) I'm using global event…
Jaime
  • 328
  • 1
  • 6
  • 19
0
votes
1 answer

PhpSpreadsheet's and PHP 7 > ZipArchive::close failure to create tempory file

At work, we use PhpSpreadsheet to generate some Excel file (we use it to be able to provide some export). Here is the simple code I use (based on some example given but PhpSpreadsheet) to generate a file:
Chris_1985
  • 71
  • 9
0
votes
1 answer

How to calculate formula when I create excel file in PhpSpreadsheet

I have a problem with my code. I generate an excel file unsing PhpSpreadsheet lib. So i can write my data and it worked fine. I add a data validation list in a cell using an other worksheet and it work too. So I try to add in a cell a formula which…
Arendelle
  • 117
  • 1
  • 10
0
votes
1 answer

How to get currency sign of cell-content using PhpSpreadsheet

I have cell content looks like "$ 1440" or "€ 970" But on formula-field (after select cell) value looks like simple number "1440" or "970". How can I get currency sign ($ or €) by using PhpSpreadsheet? I tried code $reader =…
Flam
  • 21
  • 2
0
votes
1 answer

How insert an image in footer of excel document with phpspreadsheet

I'm trying to insert dinamically an image in the footer of an Xlsx document, using PHPSpreadsheet library. I tried to modify the sample of documentation, but nothing appears when I print the doc. $inputFileName = './tpl1.xlsx'; $spreadsheet =…
cesare
  • 2,098
  • 19
  • 29
0
votes
2 answers

phpSpreadSheet library giving error when uploaded to the server

I am working on a project, in which XLS file needs to be uploaded to the server and extract its content. When I worked on my localhost it was working perfectly, but after I uploaded the project on the server, phpSpreadSheet library started not…
0
votes
1 answer

How do I make a data automatically move to a new page if the data is separate in the php excel?

I have dynamic data. So my data can change besides that I also have a data signature that cannot be separated. This signature data must be on the same page. See the red mark in this image : It is a unit and cannot be separated. Signature…
moses toh
  • 12,344
  • 71
  • 243
  • 443
0
votes
0 answers

Best way to get calculated values from a huge Excel spreadsheet

OK, so I have an Excel spreadsheet with 15 sheets full of formulae. I am under an NDA and cannot show you the spreadsheet. I am required to programmatically input values submitted by web users, calculate the outputs and return the results to the…
Sam Tolton
  • 347
  • 6
  • 14
0
votes
1 answer

How to use PHPSpreadsheet classes inside a function

I have created a AJAX function that runs on a click event on the front end. Inside this function I want to be able to generate a XLS Spreadsheet but I am unable to do this inside the function. I believe its to do with me declaring the use statements…
Reece
  • 2,581
  • 10
  • 42
  • 90
0
votes
1 answer

How do I use linest function in phpspreadsheet?

I am using 33_Chart_create_scatter.php to generate a XY scatter chart. I am closing in on completion. All I have left is inducing the linest function. Would someone please provide some code on the use of linest in phpspreadsheet? I've done a lot of…
Hal Egbert
  • 86
  • 1
  • 11
0
votes
1 answer

How to solve slow movement and scrolling in an Excel worksheet that contains Hebrew text?

I'm exporting a list of some resource into a xlsx file, where each resource has both English and Hebrew fields. The problem is that scrolling the worksheet is utterly slow. The slowness has been experienced using Microsoft Excel in multiple PCs,…