KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Display image without table #807

Open Keerthiga opened this topic on on Apr 16, 2019 - 6 comments

Keerthiga commented on Apr 16, 2019

Hi team, I tried to display images without using tables in my view file. But, I didn't get any idea about that. can you please advise to solve the issue.

KoolReport commented on Apr 16, 2019

You just need to use the img tag with src pointing to image url

Keerthiga commented on Apr 16, 2019

Hi,

"business_logo"=>array( 'formatValue'=>"<img src='<?php echo base_url(); ?>/business_images/@value' />", ),

likes this i have used.but, it does not display

KoolReport commented on Apr 16, 2019

So what do you mean by "without" table. You want to display an logo image on top of page or you want to display a list of product with image inside table?

Keerthiga commented on Apr 16, 2019

Hi, i want to display logo image without table from the result data.

KoolReport commented on Apr 16, 2019

So just do this:

<body>
    <img src="<?php echo base_url();  ?>/business_image/your_image.jpg" />
</body>
Richb201 commented on Jul 9, 2020

Following up on this, I have two rows of paths that was returned by this: <?php

Table::create(array(
    "dataStore"=>$this->dataStore("images"),
    "class"=>array(
        "table"=>"table table-hover"
    )
));
?>

URL 8d7a9-Screenshot-from-2019-05-04-09-58-25.png c8ac6-Screenshot-from-2019-05-06-09-38-05.png

How do I get the images at the paths returned to display in the report?

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None