Forum: Ruby on Rails how can I print a page?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
33478bbfbd0e2bf2737eca60a555af76?d=identicon&s=25 farocco (Guest)
on 2005-12-07 23:28
(Received via mailing list)
Hello,

I have a page that shows invoice amounts.
I do not want the user to print from the browser, as it prints page
numbers and url info on the form.

How can I print the form?

Thanks

Frank
38a8230ed3d5c685558b4f0aad3fc74b?d=identicon&s=25 joevandyk (Guest)
on 2005-12-07 23:33
(Received via mailing list)
On 12/7/05, Frank <farocco@verizon.net> wrote:
>
> Hello,
>
> I have a page that shows invoice amounts.
> I do not want the user to print from the browser, as it prints page numbers
> and url info on the form.
>
> How can I print the form?

Convert the page to a PDF using Ruby's PDF-writer.
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 technoweenie (Guest)
on 2005-12-07 23:45
(Received via mailing list)
On 12/7/05, Frank <farocco@verizon.net> wrote:
>
> Frank

There's a javascript function, window.print() or something, but it
uses the browser's printing function.

--
rick
http://techno-weenie.net
This topic is locked and can not be replied to.