> From: "ele...@ex..." <ele...@ex...>
> Cc:
> Sent: Saturday, June 2, 2012 9:18 AM
> Subject: [Cppcms-users] Creating and downloading reports at run-time
>
> Hi,
>
> This may have an obvious answer but, basically Ive got a PDF report to
> generate at runtime when /report function gets dispatched.
>
> Theoretically speaking, the PDF gets created and saved as myreport.pdf,
> how do you then send it to the browser?
>
> What if I want to skip the PDF saving to disk, and send it directly out of
> a buffer
>
> Do you you just do response().out() << buffer
>
> and set the content type appropriately?
>
Yep :-), that's it
> Thanks,
> Petr
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
|