Hi Metzlerd, i need to know how can i change the name of download report, when the user press XLS, DOC or PDF links.
It's possible?
Thank you so much !

Comments

jpfrancesconi created an issue.

metzlerd’s picture

Not currenlty without custom code. It is in my features list, but not developed at this time, sorry.

jpfrancesconi’s picture

No problem Metz, your module is so great !
Can you give me any tips how can i do it by myself?
I guess, if i create a module and make a hook function, what do you think about?

Thanks you a lot !!!

metzlerd’s picture

If you are familiar with custom module development, create your menu callback function. You can then get fornena to return you the text of the document by executing....

$doc = forena_report('report_name.pdf', $parms, FALSE); 

You would have to set the document headers correctly for the filename to be changed. Note that you'd also need to set the correct mime type headers and finally print the contents of the $pdf variable after setting the appropriate headers.