Need Help With Page Printed Counter Visual Studio 2008?

Asked By 30 points N/A Posted on -

Hi Techyv Experts!

I need help from anyone who knows .Net Programming. I am looking for a page printed counter visual studio project using VB.Net. Can anyone please help me? I need a very simple counter method every time a page or document is printed. If anyone can provide a sample of their method, it will be a great help. I am looking forward to hear your opinions and recommendations guys.

Thank you very much.

Allison Ward

Answered By 0 points N/A #159123

Need Help With Page Printed Counter Visual Studio 2008?


Hi Allison Ward,

If you count no of pages printed this code will help you. For this you need to declare a global variable of "pagecount" so that it will store total pages printed from this software.


Public Function GetPageCount() As Integer
        Dim pageCnt Integer
        pageCnt = [PRINT DIALOG NAME].PrinterSettings.Copies 'this is the function for counting no of pages 
        Return pageCnt
    End Function
This would help you 

Login/Register to Answer

Related Questions