Image widget
Using an Excel's Image widget for exporting image content together with some properties. This widget only works in Excel template files and doesn't in big spreadsheet one.
<div>
<div range="A2:B2">
<?php
\koolreport\excel\Image::create(array(
'path' => '../../../assets/images/bar.png', // must have
// "range" => "B2:D4", // overrides width, height if exists
// 'coordinate' => 'B2', // default: A1
// 'coordinate2' => 'D4', // default: '', // overrides width, height if exists
// 'offsetX' => 50, // default: 0
// 'offsetX2' => 50, // default: 0
// 'offsetY' => 100, // default: 0
// 'offsetY2' => 100, // default: 0
// 'width' => 300, // default: 0
// 'height' => 300, // default: 0
// 'resizeProportional' => false, // default: true
// 'name' => 'name', // default: ''
// 'description' => 'description', // default: ''
// 'roration' => 0, // default: 0
// 'hyperlink' => null, //Hyperlink object, default: null
// 'shadow' => null, //Shadown object, default: null
// 'shadowVisible' => true, // default: false
// 'shadowDirection' => 45, // default: 0
));
?>
</div>
</div>
path #
A string to define file path for the exported image.
Get started with KoolReport
KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.