Save Excel to folder after render
-
I have a doubt. On the button click , i'll get the Excel Report . But at the same time after the render , i want to save the same excel to a specific folder.
How can i do this ?
-
The button click and rendering is initiated by your system?
In that case you get from jsreport api a stream and it is up to you what you do with it.
In other words you are not limited in serving an excel to the client and at the same time copy the stream to a file.You an also use scripts extension and save to file in the
afterRender
hook.
However I guess you want to do this at your client side.
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
@jan_blaha Hi , i have a php file with the data. How can i render the JS Report to that php file . I couldn't find any documentation on
JS Report with PHP
.
Any code snippets that i can use for JS Report with Php.Thank You