Page 1 of 1

Load report (.mrt) in an application PHP

Posted: Fri Dec 09, 2011 2:48 pm
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

Load report (.mrt) in an application PHP

Posted: Mon Dec 12, 2011 8:56 am
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.

Load report (.mrt) in an application PHP

Posted: Mon Dec 12, 2011 12:09 pm
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?

Load report (.mrt) in an application PHP

Posted: Tue Dec 13, 2011 9:05 am
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.