KoolReport's Forum

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

Suggestion #26

Open Jayme Jeffman opened this topic on on Jul 6, 2017 - 5 comments

Jayme Jeffman commented on Jul 6, 2017

Hello,

Many times reports are printed after have been previewed, so it will be very nice a feature to layout them to fit the printer margins or set the paper sheet size.

Best regards.

Jayme Jeffman

KoolReport commented on Jul 7, 2017

Do you think this settings is good?

<?php

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\papersizes\A4;
    ...
}

The above settings will make the view of your report resize to A4 paper-size to preview and also printable.

Regards,

KoolPHP Inc

Jayme Jeffman commented on Jul 7, 2017

Perfect.

By the way, does this setting divide the report in pages or shrink it to fit the paper size ? If it shrinks, is there a way of breaking the report in sheets of the same size ?

Best regards.

Jayme Jeffman

KoolReport commented on Jul 8, 2017

I will do some research on this matter.

Zubin commented on Jul 9, 2017

I have seen that you use page-break css in Export package. It works very well however I guess that it work only in printing media. It would be great that you could simulate the printing view.

Daniel Amamoo-Otchere commented on Oct 7, 2018

Hello Koolreports

You indicated a class which is not part of the package, use \koolreport\papersizes\A4;

Can you share it for those who do not have it to reference the right code?

Thanks

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
suggestion

None