Track the Printing Page Counts

Hi Everyone,

I have a WPF project. If I give print some pages while running this application.

Then I want to get the count of printing pages and bind the total page counts in the Textbox or Dropdownlist

when I am going to print from Word, Pdf or Excel in my system. Then I want to do this concept. How to do ? Please help me.