Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. GetPrintJobInfoCollection() Problem

GetPrintJobInfoCollection() Problem

Scheduled Pinned Locked Moved C#
helpcomcareer
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    murali_utr
    wrote on last edited by
    #1

    from this job we can get the submitter, and machine, no. of pages and filename. But unable to get the printer for the job(Not Default printer in the machine), No. of copies, paper size and other settings. Need help for this issue. Thanks in advance.

    Have A Nice Day! Murali.M Blog

    OriginalGriffO 1 Reply Last reply
    0
    • M murali_utr

      from this job we can get the submitter, and machine, no. of pages and filename. But unable to get the printer for the job(Not Default printer in the machine), No. of copies, paper size and other settings. Need help for this issue. Thanks in advance.

      Have A Nice Day! Murali.M Blog

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      This is not a good question - we cannot work out from that little what you are trying to do. Remember that we can't see your screen, access your HDD, or read your mind.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      M 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        This is not a good question - we cannot work out from that little what you are trying to do. Remember that we can't see your screen, access your HDD, or read your mind.

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        M Offline
        M Offline
        murali_utr
        wrote on last edited by
        #3

        my job is print monitoring i.e. application print manager developing in c#. I catch the print job from printer queue. From that job I can get the print submitter,job name,hosted server,job time, no. of fro print and file name and some other details. but unable to get the printer selected for the print and no of pages,printer paper source, duplex or non duplex and some other details. this my problem.

        foreach (var job in LocalPrintServer.GetDefaultPrintQueue().GetPrintJobInfoCollection())
        {
        UpdateText("Job Name : " + job.JobName.ToString());
        UpdateText("Submitter :" + job.Submitter.ToString() + job.TimeJobSubmitted.ToString());
        UpdateText("Hosted Server :" + job.HostingPrintServer.Name.ToString());
        UpdateText("No of Pages :" + job.NumberOfPages.ToString());
        }

        I Need help. please suggest any other way to complete my task. Thanks in advance.

        Have A Nice Day! Murali.M Blog

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups