ChetanChaudhary wrote:
I think perhaps it has t do something with e.hasmorepages property.
It has everything to do with it. When you return from your print method you need to set
e.hasmorepages
to indicate whether there is more data to be printed. If you set it to false then the print class assumes you have finished and will not call you again.