<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 7:00 AM, <span dir="ltr"><<a href="mailto:dancer-users-request@dancer.pm" target="_blank">dancer-users-request@dancer.pm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
>> return send_file(<br>
>> \$content,<br>
>> content_type => 'application/vnd.ms-excel',<br>
>> filename => "filename.xls",<br>
>> );<br>
>><br>
>> It goes without saying that given recent developments you should<br>
>> consider using Open Document Format instead ;-)<br>
> [KB] I will try and inform you as early as possible, thanks<br>
>><br>
[KB] As I read from tutorial, send_file returns a file which already<br>
exists. It does not create a new file with new content.</blockquote></div><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_extra"><span style="font-family:monospace,monospace">This example sends html, but you could create other types of data. HTH.<br></span></div><div class="gmail_extra"><span style="font-family:monospace,monospace"><br> my $ret_html = <<HTDATA;<br><!DOCTYPE html><br><html><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br><title>Example</title><br></head><br><body><br></body><br></html><br>HTDATA<br><br> send_file( \$ret_html, content_type => 'text/html');</span><br clear="all"></div><div class="gmail_extra">Cheers -- Rick<div dir="ltr"><br></div>
</div></div>