calling report in PHP Code!

Stimulsoft Reports.PHP discussion
dediajimk
Posts: 10
Joined: Wed Jun 15, 2011 4:52 am
Location: indonesia

calling report in PHP Code!

Post by dediajimk »

Hello again the Stimulsoft Team.

I have another question for you. How to call the report in my php code directly? In another version ( stimulsoft report.net for example) it can like this:

[C#]

StiReport report = new StiReport();
report.Load("report.mrt");


What about in this version (stimulsoft report fx for PHP) ? Would you please help me to do it?


thanks before

best regards,
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

calling report in PHP Code!

Post by Vladimir »

Hello,

Unfortunately, in Reports.Fx for PHP this possibility is not available, because all actions with the report (such as generation and export) occur on the client side by the Flash application.

Thank you.
dediajimk
Posts: 10
Joined: Wed Jun 15, 2011 4:52 am
Location: indonesia

calling report in PHP Code!

Post by dediajimk »

oh no...this is the answer i don't want to hear exactly! Cause I need the user can open up the report just by clicking the button i have provided in my app.

I hope in the future stimulsoft report fx for php product can have method like another version has.


thank you so much for your respon and help.


best regards,
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

calling report in PHP Code!

Post by Vladimir »

Hello,
oh no...this is the answer i don't want to hear exactly! Cause I need the user can open up the report just by clicking the button i have provided in my app.
But the Reports.Fx for PHP can simply load and display a report in the viewer by clicking a button or on the link. Additionally, it is possible to set report parameters.


Thank you.
dediajimk
Posts: 10
Joined: Wed Jun 15, 2011 4:52 am
Location: indonesia

calling report in PHP Code!

Post by dediajimk »

Would you please show me the code of it ?

thank you for your respon and help!


best regards,
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

calling report in PHP Code!

Post by Vladimir »

Hello,

HTML code:
Design the SimpleList.mrt report
Thank you.
dediajimk
Posts: 10
Joined: Wed Jun 15, 2011 4:52 am
Location: indonesia

calling report in PHP Code!

Post by dediajimk »

well thank you for the answer and it's very helpful ! but what i mean is the report has two paramaters in it.
suppose i have 2 parameters in my php code, something like these:
$x is the first paramater and
$y is the second paramater.

and i want the user could passing those two parameters in the SimpleList.mrt (the report for example!)
How to do that ? Would you please tell me the solution for it ?


thanks for your respon n help.

best regards,
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

calling report in PHP Code!

Post by Vladimir »

Hello,

You can use the following method for this:
Design the SimpleList.mrt report
x, y - variables or SQL parameters in SimpleList.mrt report.

Additionally, you can use 'sti_get_parameter' function in 'index.php' file to set values ​​for SQL parameters.

Thank you.
dediajimk
Posts: 10
Joined: Wed Jun 15, 2011 4:52 am
Location: indonesia

calling report in PHP Code!

Post by dediajimk »

well thank you very much for your help!
It helps me very much to consider buying your product at someday!


best regards,
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

calling report in PHP Code!

Post by Andrew »

Hello,

That was the pleasure to help you.

Thank you.
Post Reply