# HtmlEasyPrinting

**URL:** <https://www.ruby-forum.com/t/htmleasyprinting/152790>\
**Category:** wxRuby\
**Created:** [November 7, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/htmleasyprinting/152790 "2008-11-07T13:17:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![biospank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@biospank](https://www.ruby-forum.com/u/biospank)\
**Post date:** [November 7, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/htmleasyprinting/152790/1 "2008-11-07T13:17:14Z")

</div>

Hi all,

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

but i get them undefined.

Any suggestion would be appreciated.

bio.

---

<div class="post-metadata">

**Author:** ![biospank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@biospank](https://www.ruby-forum.com/u/biospank)\
**Post date:** [November 7, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/htmleasyprinting/152790/2 "2008-11-07T13:31:53Z")

</div>

Fabio P. 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
