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

Problems with apostrophos using Phpspreadsheet to write xlsx

I fill out a spreadsheet with the information of a person, however, names like D'anna generate a problem in xlsx. D'anna has a square box in place of the apostrophe '. The form of writing that I use is this: $writer =…
Skinper
  • 73
  • 8
0
votes
1 answer

Why does PhpSpreadsheet fail to identify my Xlsx file in public://?

I'm working on a Drupal module that imports a Xlsx file and inserts the rows to database. Everything works fine, except PhpSpreadsheet throws the error "PHP message: Uncaught PHP Exception InvalidArgumentException: "File "" does not exist." at…
Tolga Ozses
  • 348
  • 4
  • 26
0
votes
1 answer

PhpSpreadsheet and Excel Charts, Y Axis in wrong spot

I'm trying to create a single series bar or line chart in Excel using PhpSpreadsheet. I can't get the Y Axis in the right spot. Whether it's a line or bar chart, the Y Axis shows up at random spots in the chart. Here's my code, taken primarily…
0
votes
1 answer

Generate .xlsx file using fromArray for a big amount of data

I need to write in a .xlsx file about 111.100 rows, using fromArray() but I have a strange error I use phpspreadsheet library $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $columnLetter = 'A'; …
HareaCostea
  • 145
  • 9
0
votes
0 answers

Using PhpSpreadsheet at OpenCart 2.3.0.2

I have OpenCart 2.3.0.2 installed on localhost, I want to use PhpSpreadsheet library for my OpenCart project. Does anyone here have used them? I confuse on how to call the library. I want to upload Excel data for a product. This Excel data will be…
Cross Vander
  • 2,077
  • 2
  • 19
  • 33
0
votes
1 answer

How do I solve error 503 when load Excel phpspreadsheet?

The server (maddogdomains) throws error 503, when the phpspreasheet plugin loads an Excel of 22MB and more than 40,000 records, see line 10 ($reader->load($inputFileName)) of the following code: $data = array( 'upload_data' =>…
0
votes
0 answers

Content-Type: multipart/related

I have this kind of Excel document and the file type is .xls. At least Excel complains about the file type that it doesn't match to the contents. Anyway, any idea how to import this with PhpSpreadsheet and what should be defined as a file type? I've…
jahau
  • 33
  • 5
0
votes
1 answer

PHPSpreadsheet - Spreadsheet.php failed to open stream: No such file or directory

I am developing a Laravel web application that uses the library PHPSpreadsheet. It creates a new workbook and then generates a graph inside the workbook. This is my code. use PhpOffice\PhpSpreadsheet\Spreadsheet; class MakeCertificates { …
Curtis Thompson
  • 63
  • 1
  • 2
  • 10
0
votes
0 answers

PhpSpreadsheet without composer. "use" doesn't work in php file

I haven't access to my mySQL server, cannot install anything there with composer. That's why I've downloaded PhpSpreadsheet files from here https://php-download.com/package/phpoffice/phpspreadsheet and packed to my local php directory. But also the…
user10165074
0
votes
1 answer

Upload 2 excel File using PHP in codeigniter via PHPSpreadsheet

Im trying to read 2 excel file and save in db.. Im using PHPSpreadSheet to read the excel file. Manage to insert the 1st file but unable to insert both files. public function import_excel_files() { $this->load->helper('url_helper'); …
Julie
  • 313
  • 6
  • 18
0
votes
2 answers

How do I convert excel file to pdf file

How do I convert excel file to pdf file. I have phpspreadsheet and tcpdf installed. But How do I make phpspreadsheet use Tcpdf . Am getting this error Fatal error: Class 'TCPDF' not found in …
james mwangi
  • 23
  • 2
  • 8
0
votes
2 answers

Date format in PHPSpreadsheet and PHP is different

I set in my excell file for format date like 09/01/19 (dd/mm/yy) my function to get format date in excell like this $form = $sheet->getCellByColumnAndRow($j, $i)->getStyle()->getNumberFormat()->getFormatCode(); but when im try to call with format…
Yan
  • 27
  • 1
  • 1
  • 6
0
votes
1 answer

Chart in multiple worksheet make file output corupted

Im create dynamic reporting using phpspreadsheet, when im create single worksheet with chart the output give the fine result. when im create multiple worksheet with chart, the output saying "The file corupted", im trying find the answer on here ,…
Thomas Jeriko
  • 213
  • 3
  • 13
0
votes
0 answers

Error when try make new spreadsheet from array

Im trying to make new worksheet from data array $tempspreadsheet = new Spreadsheet(); $i=1; foreach($arr_excel_temp as $Temporary) { $tempspreadsheet->setActiveSheetIndex(0) ->setCellValue('A'. $i,…
Yan
  • 27
  • 1
  • 1
  • 6
0
votes
1 answer

PhpSpreadsheet not prompting local save

I'm having some issues regarding this php library which is not working as i want to, i hope you can help me out with this one. My program first calls a service through ajax which returns a .json.Then with the given.json i need to save it in a xls…
Mbotet
  • 170
  • 2
  • 17