# How to do printing in ROR?

**URL:** <https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287>\
**Category:** Rails\
**Created:** [November 2, 2009, 7:07am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287 "2009-11-02T07:07:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 7:07am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/1 "2009-11-02T07:07:52Z")

</div>

Hi,  
I want to do printing in ROR?  
How should I do that?  
Is there any API’s are present?  
Any help appreciated?  
Thanks,  
Tushar G.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 7:12am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/2 "2009-11-02T07:12:09Z")

</div>

On Sun, Nov 1, 2009 at 10:07 PM, Tushar G. \<  
removed\_email\_address@domain.invalid\> wrote:

> Hi,  
> I want to do printing in ROR?  
> How should I do that?  
> Is there any API’s are present?  
> Any help appreciated?  
> Thanks,  
> Tushar G.

Please explain what you mean by printing.

-Conrad

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 7:15am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/3 "2009-11-02T07:15:23Z")

</div>

Conrad T. wrote:

> On Sun, Nov 1, 2009 at 10:07 PM, Tushar G. \<  
> removed\_email\_address@domain.invalid\> wrote:
> 
> > Hi,  
> > I want to do printing in ROR?  
> > How should I do that?  
> > Is there any API’s are present?  
> > Any help appreciated?  
> > Thanks,  
> > Tushar G.
> 
> Please explain what you mean by printing.
> 
> -Conrad

Hi,  
I am using rails 2.2.  
I have one document, that I want print through printer through my  
application.

Is that possible?  
Thanks,  
Tushar G.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 8:46am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/4 "2009-11-02T08:46:40Z")

</div>

As per your post, if you want to print page of application through rails  
than just give javascript:window.print(); on any label onclick.  
It will pop up the printer window & based on your printer selection. you  
get print of page content.

Hope this will help you.

Thanks,  
Priyanka P.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 10:05am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/5 "2009-11-02T10:05:22Z")

</div>

On Sun, Nov 1, 2009 at 11:46 PM, Priyanka P. \<  
removed\_email\_address@domain.invalid\> wrote:

> 

Hi, this isn’t a Rails related question but here’s one way to do it in  
Javascript:

> **[Creating a Print Web Page Button](http://www.web-source.net/web_design_tips/print_web_page_button.htm)**
>
> Offering free web design tips: Creating a print web page button.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 10:27am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/6 "2009-11-02T10:27:43Z")

</div>

Conrad T. wrote:

> On Sun, Nov 1, 2009 at 11:46 PM, Priyanka P. \<  
> removed\_email\_address@domain.invalid\> wrote:
> 
> > 
> 
> Hi, this isn’t a Rails related question but here’s one way to do it in  
> Javascript:
> 
> [Creating a Print Web Page Button](http://www.web-source.net/web_design_tips/print_web_page_button.htm)
> 
> Good luck,
> 
> -Conrad

Hi Conrad T.,  
I also suggest the same function as you provide for reference. It’s  
javascript function so, it’s work with any programming language which  
support the javascript.

- priyanka pathak

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 7:16am UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/7 "2009-11-02T07:16:50Z")

</div>

Tushar G. wrote:

> Hi,  
> I want to do printing in ROR?  
> How should I do that?  
> Is there any API’s are present?  
> Any help appreciated?  
> Thanks,  
> Tushar G.

Want to print content of the page?

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 2, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287/8 "2009-11-02T19:33:09Z")

</div>

Tushar G. wrote:

> ```
> Hi,
> I want to do printing in ROR?
> How should I do that?
> Is there any API's are present?
> Any help appreciated?
> Thanks,
> Tushar G.
> ```

Do you want to do the printing on the server system or on the client system?  
  
--~--~---------~--~----~------------~-------~--~----~  
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 removed\_email\_address@domain.invalid   
 To unsubscribe from this group, send email to removed\_email\_address@domain.invalid   
 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en  
-~----------~----~----~----~------~----~------~--~---
