2

I build a Xpage application through Lotus designer 9 . I have a header through CSS which prints at each page while printing. I want to add page number of each page at header in this format (i.e. Page 1 of 6 ) can any one guide ?

Per Henrik Lausten
  • 21,331
  • 3
  • 29
  • 76
Sidrah
  • 77
  • 1
  • 7

2 Answers2

5

Try this CSS:

@page {
    @top-center {
        content: 'Page ' counter(page) ' of ' counter(pages);
    }
}
Per Henrik Lausten
  • 21,331
  • 3
  • 29
  • 76
0

HTML printing in a browser is a PITA. If you want to get quality output, you might consider to generate some PDF that users can print. It's a lot more work, but gives you 100% control how the print will look like.

You can check my blog series on Domino and PDF to get a head start.

Short of that Per's & Eric's answer is the way to go

stwissel
  • 20,110
  • 6
  • 54
  • 101