Get KoolPHP UI with 30% OFF!

Export Images

RICHARD PERRIS
I have a new GridCalculatedColumn() with images in. When I export to pdf the images are blank. How do we show images in the pdf.
Posted Apr 8, 2016 Kool -
Anthony Amolochitis
I had a similar issue with a grid custom column. You may need to manage that on the table or grid prerender event. I bet that is the case. Otherwise you may need a custom solution for that one using tcpdf or some other pdf extension. How are you exporting them? To a pdf?
Posted Apr 8, 2016 Kool
RICHARD PERRIS
I resolved this by adding a doing two things.
1. ensure the picture cartable was in double quotes i.e
$pic = "<image src='".$pic .....
Not
$pic = '<image src="'.$pic ....
2. In the root directory of PDF writer (KoolControls/library/tcpdf ) I created a a folder cache with read write access. For some reason the koolphp installation that i had did not include this folder.
hope this helps everyone
Posted Apr 8, 2016 Kool -