Saving a copy of a report on server

Stimulsoft Reports.PHP discussion
Post Reply
Francine
Posts: 28
Joined: Wed May 13, 2015 10:56 pm

Saving a copy of a report on server

Post by Francine »

I am trying to find a way to allow the users to make a copy of an existing report and save it on the server with a different file name with the file name entered by the user.
I have tried to modify the code in the index.php file and handler.php but I am not able to capture the new file name by the user.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Saving a copy of a report on server

Post by Vladimir »

Hello,

We have added a new parameter $report_file_name for the function of saving the report. The update will be available in the prerelease build 2015.1.4 today.

Thank you.
Francine
Posts: 28
Joined: Wed May 13, 2015 10:56 pm

Re: Saving a copy of a report on server

Post by Francine »

Thank you verify much for your quick response, help and action to have a solution. I will look for the pre-release build.
Francine
Posts: 28
Joined: Wed May 13, 2015 10:56 pm

Re: Saving a copy of a report on server

Post by Francine »

I have tried the pre-release build and it is still show the Save As dialog box to save on PC. Do I need to set something else in the config file?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Saving a copy of a report on server

Post by Vladimir »

Hello,

Yes, you should set the ShowSaveFileDialog property to True.
After that, when you use Save button (not SaveAs button) will be displays a dialog for entering the file name. The file name will be passed to the sti_save_report() function in the $report_file_name parameter.

Thank you.
Francine
Posts: 28
Joined: Wed May 13, 2015 10:56 pm

Re: Saving a copy of a report on server

Post by Francine »

Thanks I got it to work.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Saving a copy of a report on server

Post by HighAley »

Hello.

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

Thank you.
Post Reply