Need Help With Page Printed Counter Visual Studio 2008?

Asked By 30 points N/A Posted on -
qa-featured

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

SHARE
Answered By 5 points N/A #159123

Need Help With Page Printed Counter Visual Studio 2008?

qa-featured

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 

Related Questions