Page 1 of 1

View report with php

Posted: Wed Sep 21, 2016 9:39 am
by sofiabarreira
Hey there,

Hello everyone. I am new to Stimulsoft and at the moment I have a question to ask you. So far I've created a report that returns the company number 2 and his respective employees (I have more companies). But for now, I want to show that report on my website with php. For example, in my website when the user chooses the company number 2, the website generates the report and shows the company2 and his workers.

It is possible to do this with the Stimulsoft documentation? Or is it only with php and a report url with a parameter ?

Any help would be helpfull
thanks

Re: View report with php

Posted: Wed Sep 21, 2016 1:21 pm
by Alex K.
Hello,

You can add a variable (Variable1) in the report and use it in the filtering for the databand component or data. Then it is necessary to set the value of the parameter in URL. For example:

Code: Select all

http://localhost/stimulsoft/index.php?sti_client_key=ViewerFx&sti_report_key=Report.mrt&Variable1=2
Also, please see the samples for the PHP version:
https://www.stimulsoft.com/en/samples/php
https://github.com/stimulsoft/Samples-Flash-PHP
https://github.com/stimulsoft/Samples-JS-PHP

Thank you.

Re: View report with php

Posted: Thu Sep 22, 2016 8:35 am
by sofiabarreira
Gonna try ! :)

thanks!

Re: View report with php

Posted: Thu Sep 22, 2016 11:17 am
by Alex K.
Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.