Dario Pispisa 1 Reputation point

HI, I'm using this function:
and then I have always as result 1 also if I print different copies.
Do You know why?

Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
640 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Morris 1,156 Reputation points

    Does the print driver support the PrintTicket technology?

    If this is an XPS based print driver than the spool file is XPS. You can rename this file to a ZIP, then you can extract the print ticket. If it's not XPS based I'm sure there is some devmode conversion to generate a printticket but I do not know how to suck that out of the job devmode.

    I printed 7 copies. Open the [0].piece file.

    </psf:ParameterInit><psf:ParameterInit name="psk:JobCopiesAllDocuments"><psf:Value xsi:type="xsd:integer">7</psf:Value>


  2. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,671 Reputation points Microsoft Vendor


    PrintTicket.CopyCount Property corresponds to the Print Schema's JobCopiesAllDocuments keyword. The Print Schema and related technologies are available in Microsoft .NET Framework 3.0 and later versions of Microsoft .NET Framework.
    Please ensure .NET Framework 3.0 feature is enabled.

    I did some research and found below threads which might give you some help.

    System.Printing Namespace issues (ReachFramework)
    How to get the count of number of pages being printed using Win32_PrintJob
    Unable to get number of copies of a print job using PrintJobInfoCollection, C#, Winforms



    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.