aVadim483 / fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to insert image

SyahrirMbojo opened this issue · comments

How to insert image in fast-excel-writer because i didn't see it in the documentation?

Now there is no such feature. Might be added later

In my opinion, this feature should also exist because there is a possibility that the report will contain a logo image or something else. I hope the feature is available soon because I love using this library because it's simple to use but nice and fast. I need this library because I have a lot of report data that I want to export to excel. Thank you for the help.

ok, i understand, i'll explore this feature

Thank you very much and I will try it right away

I tried to insert an image and got an error like this

Image file "http://localhost:8081/img/img_petugas_aktif.png" does not exist

image

This is my code

image

i tried image with url also error does not exist

Image file "http://localhost:8081/img/img_petugas_aktif.png" does not exist

Use local path to image, not URL

In the example above, I tried the local path and it didn't work, I got the error doesn't exist and I need an image with a URL too

http://localhost:8081/img/img_petugas_aktif.png - it's a local URL, not local path on your drive
the function base_url() obviously also returns a URL

but what I want is the URL image from our server and that is what is often needed

Well, I'll add this future too (I didn't think it was necessary)

Thank you for the help

but what I want is the URL image from our server and that is what is often needed

added in v4.4.1