View report with php

Stimulsoft Reports.PHP discussion
Post Reply
sofiabarreira
Posts: 2
Joined: Wed Sep 21, 2016 9:01 am

View report with php

Post 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
Last edited by sofiabarreira on Wed Sep 21, 2016 1:41 pm, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: View report with php

Post 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.
sofiabarreira
Posts: 2
Joined: Wed Sep 21, 2016 9:01 am

Re: View report with php

Post by sofiabarreira »

Gonna try ! :)

thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: View report with php

Post by Alex K. »

Hello

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

Thank you.
Post Reply