Load report (.mrt) in an application PHP

Stimulsoft Reports.PHP discussion
Post Reply
paulorosouza
Posts: 2
Joined: Fri Dec 09, 2011 2:45 pm
Location: Santos, Brasil

Load report (.mrt) in an application PHP

Post by paulorosouza »

Good Afternoon

I have an application deployed in php5, and I have a question

Can I load report files (.mrt) in my application direct in the viewer fx ?
I make test with my file .mrt is loaded but i have to open the file and login in the database

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Load report (.mrt) in an application PHP

Post by HighAley »

Hello.
paulorosouza wrote:I have an application deployed in php5, and I have a question

Can I load report files (.mrt) in my application direct in the viewer fx ?
I make test with my file .mrt is loaded but i have to open the file and login in the database
Yes, you can open mrt files with open button.
Also, please, read our FAQ http://stimulsoft.com/ReportsFxPHPFAQ.aspx

Thank you.
paulorosouza
Posts: 2
Joined: Fri Dec 09, 2011 2:45 pm
Location: Santos, Brasil

Load report (.mrt) in an application PHP

Post by paulorosouza »

thank you

But I would not want to open the file. Mrt, but to run the report he directly open, I saw in the documentation and it seems I have to put in index.php, is it?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Load report (.mrt) in an application PHP

Post by Vladimir »

Hello,

Yes, you can edit the 'index.php' file - 'sti_get_report' function, and correct it to suit your needs. Then when you call the URL specified below, for example:

http://localhost/stimulsoft/index.php?s ... Report.mrt

In this case, the 'sti_get_report' function will be called. To this function the report key as a parameter will be sent. By this key (in the URL above – the file name) you need to download the report and return it as a result of the function.

Thank you.
Post Reply