Results 1 to 3 of 3

Thread: how to know copy count

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2004
    Posts
    46

    Question how to know copy count

    hi all how i can know using vb6 code the printed job copy count for every job in queue
    haker7_8

  2. #2

    Thread Starter
    Member
    Join Date
    Jul 2004
    Posts
    46

    Re: how to know copy count

    hi all any help plz this is urgent !!!
    haker7_8

  3. #3
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: how to know copy count

    Assuming you mean total pages printing – have not tested while printing:
    Code:
    Option Explicit
    
    Public Function TotalPagesPrinting() As Long
        Dim strWQL As String, objOut As Object
        strWQL = "SELECT * FROM Win32_PrintJob"
        For Each objOut In GetObject("winmgmts:\\.\root\CIMV2").ExecQuery(strWQL)
            TotalPagesPrinting = TotalPagesPrinting + objOut.TotalPages
        Next
    End Function
    Code:
    Private Sub Command1_Click()
        MsgBox TotalPagesPrinting
    End Sub

    More information: Win32_PrintJob, Scripting in Windows 2000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width