Dear Mr. Chowdhury
thank you for your post.
To solve this task I would like to guide you to our knowledgebase where you can find an article with information of how you can determine the total page count of your report. The part “2-pass technique” is relevant for you.
Best regards,
Patrick Preuschoff Technical Support combit GmbH