KoolReport's Forum

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

What is the best way to display pure text on a report? #3083

Open Richb201 opened this topic on on Jun 30, 2023 - 3 comments

Richb201 commented on Jun 30, 2023

I have sections on my report where I want to display text that I have written in a text field in my MySQL table. I'd like this to appear where I place it on the report. What Package can I use to do this? BTW, the are text() fields.

Richb201 commented on Jul 1, 2023

What would be perfect is to use Word to create a pdf, and then including that pdf in the report. I'd like to save the pdf in out of my datasources. Can it be done?

Sebastian Morales commented on Jul 3, 2023

Generally html and css are not perfect for placing text or image exactly inch by inch like in printing or using word processor. Your idea of using world processor to PDF then merging with reports is great. A possible solution is exporting your report to PDF, then using some popular PDF packages like:

https://packagist.org/packages/iio/libmergepdf

or:

https://packagist.org/packages/jurosh/pdf-merge

to merge the report's PDF with your word's PDF for a final result and output it for users to download to their machines / mobile devices.

Richb201 commented on Jul 3, 2023

Thanks. I already use soffice to convert word documents to png files. Koolreport displays the png files fine as one of the columns of a report with this code:

    Table::create(array(
        "dataStore" => $this->dataStore("ppts"),
        "showFooter" => true,
        "columns" => array(
            "last_date_modified"=>array("label"=>"date of document"),
            "description",
            "reason",
            "business_component",
            "thumbnail_url" => array("label"=>"substantiation",
                "formatValue"=> "<img width='500px' height='400px' src='".base_url()."/@value' />"
            ),

        ),

        "cssClass"=>array(
            "table"=>"table-bordered table-striped table-hover"
        )
    ));

Is there anyway to display this same .png wthout a Table?

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
help needed

None