[wxruby-users] HtmlEasyPrinting

Alex Fenton alex at pressure.to
Fri Nov 7 07:26:52 EST 2008


Fabio Petrucci wrote:
> in HtmlEasyPrinting how can i use PAGENUM and PAGESCNT macros?
>
> I've tried to use them into an html text: Wx::PAGENUM and Wx::PAGESCNT 
> using set_header and set_footer

They're not constants but placeholders. Use them wrapped in the @ sign, 
like this:

  htp = Wx::HtmlEasyPrinting.new('printing')
  htp.header = "Page @PAGENUM@ of @PAGESCNT@"

I realised after your message that the textile docs have mangled the 
formatting of this, so it's not at all clear. I'll correct it now, 
thanks for reporting it.

alex




More information about the wxruby-users mailing list