How do I get a report with GET parameter

Stimulsoft Reports.PHP discussion
Post Reply
evilcat
Posts: 5
Joined: Thu Mar 13, 2025 8:49 am

How do I get a report with GET parameter

Post by evilcat »

hi
I am using php version into mrt file
How to change the data with get parameter
Attachments
bilgi.png
bilgi.png (17.28 KiB) Viewed 17020 times
Lech Kulikowski
Posts: 7193
Joined: Tue Mar 20, 2018 5:34 am

Re: How do I get a report with GET parameter

Post by Lech Kulikowski »

Hello,

You can use variables:
https://www.stimulsoft.com/en/documenta ... iables.htm

Thank you.
evilcat
Posts: 5
Joined: Thu Mar 13, 2025 8:49 am

Re: How do I get a report with GET parameter

Post by evilcat »

thank you very much for the return can you make me a small mrt file and index.php with get variables
Lech Kulikowski
Posts: 7193
Joined: Tue Mar 20, 2018 5:34 am

Re: How do I get a report with GET parameter

Post by Lech Kulikowski »

Hello,

https://www.stimulsoft.com/en/documenta ... iables.htm
Report variables transferred in a URL query

The report generator has the ability to automatically assign values to variables passed in a URL request. To enable this, you need to set the passQueryParametersToReport property to true in the event handler:

Code: Select all

<?php
use Stimulsoft\Report\StiReport;

$report = new StiReport();        
$report->handler->passQueryParametersToReport = true;
$report->process();
?>
Thank you.
Post Reply