# Printing Problem: text very small

**URL:** <https://www.ruby-forum.com/t/printing-problem-text-very-small/141789>\
**Category:** wxRuby\
**Created:** [June 30, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/printing-problem-text-very-small/141789 "2008-06-30T16:47:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@grios](https://www.ruby-forum.com/u/grios)\
**Post date:** [June 30, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/printing-problem-text-very-small/141789/1 "2008-06-30T16:47:50Z")

</div>

hi people,

Im trying to print some report but the text is too small, so as im not  
understanding much of the code of the printing example, i would like to  
know if there is any other reference i could read to solve that problem.

thanks

---

<div class="post-metadata">

**Author:** ![grios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@grios](https://www.ruby-forum.com/u/grios)\
**Post date:** [June 30, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/printing-problem-text-very-small/141789/2 "2008-06-30T20:11:00Z")

</div>

Hi

Gabriel Rios wrote:

> Im trying to print some report but the text is too small, so as im not  
> understanding much of the code of the printing example, i would like to  
> know if there is any other reference i could read to solve that problem.

Take a look at:  
[http://docs.wxwidgets.org/stable/wx\_printingoverview.html#printingoverview](http://docs.wxwidgets.org/stable/wx_printingoverview.html#printingoverview)

In particular Wx::Printout has some methods to get scaling from screen  
to print dimensions  
[http://docs.wxwidgets.org/stable/wx\_wxprintout.html#wxprintout](http://docs.wxwidgets.org/stable/wx_wxprintout.html#wxprintout)

In Wx they have recently added helper methods to map sizes - I’ve added  
a tracker item for us to add these to wxRuby too.

Lastly, you could look into using HtmlEasyPrinting which makes printing  
a lot easier if your report format makes sense as simple HTML.

hth  
alex

---

<div class="post-metadata">

**Author:** ![grios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@grios](https://www.ruby-forum.com/u/grios)\
**Post date:** [July 1, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/printing-problem-text-very-small/141789/3 "2008-07-01T14:01:38Z")

</div>

On Mon, Jun 30, 2008 at 3:08 PM, Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Take a look at:  
> [http://docs.wxwidgets.org/stable/wx\_printingoverview.html#printingoverview](http://docs.wxwidgets.org/stable/wx_printingoverview.html#printingoverview)
> 
> In particular Wx::Printout has some methods to get scaling from screen to  
> print dimensions  
> [http://docs.wxwidgets.org/stable/wx\_wxprintout.html#wxprintout](http://docs.wxwidgets.org/stable/wx_wxprintout.html#wxprintout)

Thanks Alex, It helps me a lot and solve my problem.

–

Gabriel FalcÃ£o Rios

---

<div class="post-metadata">

**Author:** ![grios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@grios](https://www.ruby-forum.com/u/grios)\
**Post date:** [July 1, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/printing-problem-text-very-small/141789/4 "2008-07-01T20:22:03Z")

</div>

I used RubyScript2exe to build a Windows exe from my WxRuby app and it  
worked great. When I added --rubyscript2exe-rubyw to the command line,  
to  
get rid of the DOS window, it still worked (once I redirected my stdin  
and  
stderr to a log file), except that occasionally a DOS window appears and  
disappears (very quickly). This occurs predictably, when certain events  
occur. (It’s not every time I write debug messages to the log file.)  
The  
occurrence is not related to any GUI activity. It happens when my Ruby  
app  
receives a certain message from another app. It may not even be related  
to  
WxRuby.

Any idea of what might be causing this? (It’s annoying and certainly  
not  
acceptable for a release version.)

Thanks,

Eric R.
