Using Template and Conditional Formatting in PHPSpreadsheet | PHPSpreadsheet Tutorial  #4

Using Template and Conditional Formatting in PHPSpreadsheet | PHPSpreadsheet Tutorial #4

GemaCode

5 лет назад

16,656 Просмотров

Hi everyone. Welcome to my php tutorial video.
in this video, i'm about to explain how to use template.
which means we're gonna make and style a spreadsheet in microsoft excel.
and then we're gonna use that file and fill our data in PHP.
this way, we don't need to make the excel file from scratch like in previous chapters.
and we will also learn how to make and implement conditional formatting.


Watch all PHP Excel series here : https://goo.gl/j37ds6

Watch all PHP Office series here : https://goo.gl/VrLYkd

PHPSpreadsheet : https://github.com/PHPOffice/PhpSpreadsheet

Source Code : https://bit.ly/3hYdT0F

Music :
+ Golden By. Vibe Tracks (Youtube Audio Library)
+ Staccato By. Vibe Tracks (Youtube Audio Library)
+ Faith By. Vibe Tracks (Youtube Audio Library)
+ Disfigure - Blank [NCS Release] (https://youtu.be/p7ZsBPK656s)

Тэги:

#PHP #Programming #PhpSpreadsheet #Excel #spreadsheet #Document_generation #Tutorial #PHPOffice #PHP_Library #Documentation #Font #Worksheet #Conditional_Formatting #Template #Visual_Studio_Code
Ссылки и html тэги не поддерживаются


Комментарии:

@dgatica
@dgatica - 09.07.2022 07:28

cuando intento cargar el templateme arroja este error, puedes ayudarme ?

Fatal error: Constructor PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles::__construct() cannot declare a return type in D:\xampp\htdocs\dlogger\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Reader\Xlsx\Styles.php on line 18

Ответить
@hygisonbrandao9251
@hygisonbrandao9251 - 23.05.2021 10:33

can you teach how to hide columns as well please?

Ответить
@ChefOtang
@ChefOtang - 04.05.2021 14:51

this is what Im looking for, thank you

Ответить
@flutterrun670
@flutterrun670 - 16.03.2021 08:29

hello i want to ask if who had an idea on how to put a red color in the cell column if no given data in the database

Ответить
@jahfartv
@jahfartv - 13.10.2020 14:41

very good video, same library suitable for server (online)? local server ok but online error coming....

Ответить
@AlejandroRuedaProjectD
@AlejandroRuedaProjectD - 13.05.2020 23:18

You rock! thanks :D

Ответить
@gkdada67
@gkdada67 - 20.04.2020 06:20

Sir I need a date format to Excel to MySQL need help sir

Ответить
@diagknowstech
@diagknowstech - 23.03.2020 06:15

sir how about reading spreadsheet to database

Ответить
@diagknowstech
@diagknowstech - 21.03.2020 06:39

hi sir .... this vid is so helpful... i just want to ask if there is a way to also insert image from the template....

Ответить
@hairieamin4651
@hairieamin4651 - 12.01.2020 01:20

why did my downloaded excel file is in invalid format? i did everything right, i think

Ответить
@gabrielmh2013
@gabrielmh2013 - 03.12.2019 02:08

Hola, gracias por tus vídeos, me ayudaron mucho, yo estaba usando phpexcel y tuve que mudarme a phpspredsheet por falta de herramientas.
Un favor, podrías mostrar un ejemplo donde pueda clonar celdas, agregar saltos de pagina, y leer el nombre de las hojas dentro de una plantilla.

Ответить
@yeimerpinedo8402
@yeimerpinedo8402 - 22.11.2019 17:58

How do I close the Excel document after going through it?

Ответить
@clashwiththepa250
@clashwiththepa250 - 20.11.2019 07:40

why shapes missing php excel? my template have a shapes but after downloading shapes are not visible.

Ответить
@rhaystrike
@rhaystrike - 06.11.2019 00:12

hello, thank you very much for the explanation, could you upload the file from chapter 4 to google drive?

Ответить
@walderb.andriola6235
@walderb.andriola6235 - 09.09.2019 14:59

Hi,
Great job!
How to insert image into cell?
Thanks.

Ответить
@SalientAnimal
@SalientAnimal - 05.09.2019 16:07

I keep getting an error when trying to open the file :Excel cannot open the file 'template.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the file format of the file. Any help here? I was able to successfully work through the first 3 Tutorials without any issues, it's only now that I am trying to use the template created.

Ответить
@dijiflex
@dijiflex - 24.08.2019 20:44

I have problem. Everything is working on the local server but when i upload it to the live server i get a syntax error on one of the phpspreadsheet files. i have confirmed that i am using php version 7.0 on my cpanel


Parse error: syntax error, unexpected '=' in /home/kyucuco1/*************/user/includes/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php on line 2460

Ответить
@osvaldobanze1845
@osvaldobanze1845 - 19.08.2019 18:30

Muito obrigado ajudou-me muito.

Ответить
@rushabhchhantbar9029
@rushabhchhantbar9029 - 14.08.2019 21:52

Data base data fatch and horizontal total print after conversation to excel and excel in print horizontal total

Ответить
@barbarazavaleta5264
@barbarazavaleta5264 - 13.06.2019 23:21

Nice tutorial so helpful i wish you culd make a how to insert xlsx data into database video, thanks in advance!

Ответить
@ranadeepjash1150
@ranadeepjash1150 - 19.05.2019 13:22

Update of my status. My system is now working fully. Thank you very much for this tutorial. My previous problem was due to i was using a excel templates which had vba scripts on it which i did not created. But after i creating a fresh excel templates the codes starts working 100% in first chance. Again thank you.

Ответить
@ranadeepjash1150
@ranadeepjash1150 - 18.05.2019 13:24

hi my case excel is downloading but in corrupted format. and in notepad++ the downloaded excel showing following problem
"<br />
<b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>C:\xampp\htdocs\sdrf\excel\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Cell\Cell.php</b> on line <b>329</b><br />
"
kindly help me.i have not found any maximum execution parameter in cell.php. also change php.ini file max_execution_time to 3000 second. But not worked.

Ответить
@romantrahtenberg5119
@romantrahtenberg5119 - 09.05.2019 23:04

Hello from Russia!))) when you make a video in which you tell how to get data from a file excel and processing it in php, next load it into the database?

Ответить
@jhesuslegarda4026
@jhesuslegarda4026 - 03.05.2019 01:33

I have an issue: PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\phpdemos\excel3.php on line 15
Can you giveme an idea of what us happening? because I'm following all the tutorial steps.

Ответить