On Jun 3, 12:47 pm, ratnamraj varasala
<chinnuj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hai
> im ruby on rails developer, im integrating princely plugin and prince
> software to my rails application
>
> i have generated pdf file successfully using the following code
> princely = Princely.new()
>
> html_string = render_to_string(:template =>
''test_methods/
> visual_test/generate_report.rhtml'', :layout=> false)
>
> send_data(
> princely.pdf_from_string(html_string),
> :filename => ''visual_test'',
> :type => ''application/pdf''
> )
send_data sends data backs to browser making the request. If you want
to save data to a file on your server have a look at the File class.
Fred
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.