Muito obrigado Lucas! I have found the plugin very useful in my project. 
Big thanks for adding the the file name parameter.  

On Monday, July 2, 2012 7:51:05 PM UTC-5, Lucas D'avila wrote:
>
> Hello Jarrod!
>
> Please pull the last changes of branch v0.1.x or download the packed 
> plugin for it branch here [1], so just add "response_filename" arg to 
> REPORTPISA call, e.g:
>
> return plugin_appreport.REPORTPISA(html = html, response_filename = 
> 'change_my_name.pdf')
>
>
> {}
>
> [1] 
> https://github.com/downloads/lucasdavila/web2py-appreport/web2py.plugin.appreport_v0.1.x.w2p
>
> Em sábado, 9 de junho de 2012 18h43min08s UTC-3, Jarrod escreveu:
>>
>> I have successfully used Lucas D'Avila's very helpful appreport 
>> plugin<https://github.com/lucasdavila/web2py-appreport>to make pdf's of 
>> invoices generated by my site. However I can't seem to 
>> figure out how to specify the name that the pdf should be downloaded as.  I 
>> am generating the pdf by creating the html and css and then using the 
>> REPORTPISA function to return the document. 
>>
>> return plugin_appreport.REPORTPISA(html = html)
>>
>> Anyone have any insight on how to accomplish this? 
>>
>> Thanks,
>> Jarrod 
>>   
>>
>

Reply via email to