# Print link or button?

**URL:** <https://www.ruby-forum.com/t/print-link-or-button/96890>\
**Category:** Rails\
**Created:** [July 3, 2006, 7:22am UTC](https://www.ruby-forum.com/t/print-link-or-button/96890 "2006-07-03T07:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptremblett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Post date:** [July 3, 2006, 7:22am UTC](https://www.ruby-forum.com/t/print-link-or-button/96890/1 "2006-07-03T07:22:58Z")

</div>

Is it possible to create an action that would sent a view straight to  
a printer or a button of some sort that would enable the view to be  
printed. Currently the user has to click on file and then on print in  
the browser to print. My users would like to be able to click on a  
link or button and have the view printed. Is such a thing possible?  
And how would one do it?

Thanks,

Paul

---

<div class="post-metadata">

**Author:** ![ptremblett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Post date:** [July 3, 2006, 7:32am UTC](https://www.ruby-forum.com/t/print-link-or-button/96890/2 "2006-07-03T07:32:17Z")

</div>

creating an onclick=“window.print();” should allow you to do this.

mark
