Printing Problem: text very small

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

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

In particular Wx::Printout has some methods to get scaling from screen
to print dimensions
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

On Mon, Jun 30, 2008 at 3:08 PM, Alex F. [email protected] wrote:

Take a look at:
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

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

Gabriel Falcão Rios

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs