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
-1
votes
1 answer

PHPspreadsheet and JS: How to support arabic?

I'm getting data from the database, some strings are English, some are Arabic, some are half Arabic half English. I'm generating the spreadsheet .xlsx like this function writeToFile($spreadsheet, $filename) { header("Content-Encoding: UTF-8"); …
Lynob
  • 5,059
  • 15
  • 64
  • 114
-1
votes
1 answer

Insert column as row from Excel to mysql usng Phpspreadsheet

Not sure how to format the title. pardon me. I am using PhpSpreadsheet to INSERT the Excel column into MySql database. What i have What i tried ... $activeSheet = $spreadsheet->getActiveSheet(); $sheetData =…
Dexter
  • 7,911
  • 4
  • 41
  • 40
-1
votes
1 answer

Reduce Docker image size for Symfony + phpoffice/phpspreadsheet?

This is my old custom Dockerfile, and I want to make it a lot slimmer: FROM php:7.2-apache RUN \ apt-get update \ && apt-get -y --no-install-recommends install \ # composer dependencies git unzip openssh-client \ #…
lewis
  • 33
  • 4
-1
votes
1 answer

Yii2 - PHPSpreadSheet - Header already sent

I have a button on a modal and when clicked I want to generate an Excel workbook based off of a xls template file and then prompt it for the user to download/open. The button uses javascript to open a new blank window The click event simply…
Still Learning
  • 130
  • 2
  • 12
-1
votes
2 answers

Excel - Getting the 2nd or nth matched string from your corresponding data

With my previous posts 1. PHPSpreadsheet generates an error "Wrong number of arguments for INDEX() function: 5 given, between 1 and 4 expected" 2. Excel - Getting the Top 5 data of a column and their matching title but produces duplicates I have…
Suomynona
  • 639
  • 1
  • 5
  • 20
-1
votes
1 answer

How can I change the datetime format in PHPSpreadsheet?

I use PHPspreadsheet to covert a xlsx file to a csv file. In column "I" I have dates and times like [26-04-2019 07:57:35] how can I change this to [2019-04-26 07:57:35]? I want to change this for uploading to MYSQL. use…
Marvin
  • 123
  • 2
  • 10
-1
votes
2 answers

Error : the file format or file extension is not valid. verify that the file has not been corrupted

i want to use PHPSpreadsheet library in my project to export data to excel the file exported but when i try to open the file this error display: excel cannot open the file because the file format or file extension is not valid. verify that the file…
tokhy2000
  • 65
  • 3
  • 10
-1
votes
1 answer

How does "new PhpOffice\PhpSpreadsheet\Spreadsheet()" work

I've got a simple code as the following (docs) : // Set the headers to a downloadble content header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition:…
Alexandre Elshobokshy
  • 10,720
  • 6
  • 27
  • 57
-1
votes
1 answer

How to get Named Ranges in PHPSpreadsheet

I want get named ranges in my file. just name of my ranges. in my file, i have ranges 'detail', 'header', 'footer'. this is my function $temp_name = []; foreach($spreadsheet->getNamedRanges() as $name){ $temp_name [] = $name; } print_r("
Temp…
Yan
  • 27
  • 1
  • 1
  • 6
-1
votes
1 answer

installing phpspreadsheet on server where already vendor folder exists

I am new to the composer. I already have vendor folder for mpdf library. All mpdf functions are working. Now I want to install phpspreadsheet library on a server. Can someone explain how to install it? What will be its default location? Can both the…
Meera
  • 1
-1
votes
1 answer

PhpSpreadsheet - Distribution / Packaging

PHPSpreadsheet uses Composer for installation (which was a pain on a windows PC using Netbeans but that's another story). In the good old days you used to just drop a folder with the PHP files into a project, include them and off you went. Now the…
-1
votes
1 answer

PHPSpreadsheet turn off screen report in sample HTML to Xlsx converter

I have loaded the library and gotten the sample code to work. The problem is I don't see or read anywhere how to turn off the screen output for the 46_ReadHtml.php This is output that I need to turn off: 19:37:47 Read Html format from…
user1794918
  • 1,131
  • 2
  • 16
  • 34
-1
votes
1 answer

How to connect PhpSpreadsheet with production?

Current repository of PhpSpreadsheet is repository for developers. It has bin/ with developer tools It has docs/ for users-developers It has samples/ for user-developers It has tests/ with developer tests It has phpunit and other developer config…
SailorMax
  • 1
  • 2
-2
votes
2 answers

PHPSpreadSheet : Site can't be reach

Try to export xlsx file using PhpSpreadSheet in CodeIgniter 3. When i run the url, it shows This site can't be reach. Web might be temporarily down or it may have moved permanently to a new web address. Controller require 'vendor/autoload.php'; …
lauwis
  • 323
  • 1
  • 4
  • 15
-2
votes
1 answer

Multiple Tables Into Single PHPSpreadsheet

I am populating many tables which has vehicle mileage details on a monthly basis of a particular year. I have managed to popuate the table and output the results on the webpage, but I am stuck on how to take the exact tables displayed on the HTML…
Developer
  • 145
  • 2
  • 5
  • 20
1 2 3
57
58