[SOLVED] Print JobID under Windows

Author: gianni.sandigliano@unifacesolutions.com (gianni)

Hi Unifacers, I have a nice Uniface hidden form or Uniface report printing on Windows to current default printer with /nodialog into printer attributes. Any idea on how to get print JobID just generated from Uniface from the spooler subsystem? Thanks in advance for any tips or trick! Gianni


  1. Hi all, my small issue was solved this morning when the magic word "wmic" came to my mind. Executing: print "MYPRINTER", "A" vStatus = $status vResult = $result activate "WINOS".commandout("wmic printjob get JobId,HostPrintQueue,Owner,Document,Size,DriverName,Color,PaperSize,JobStatus,TimeSubmitted", vJobs) and a proper parsing of vJobs string has made the trick. It could be marked as [Solved] Gianni

    Author: gianni (gianni.sandigliano@unifacesolutions.com)
  2. Gianni, I had totally forgot about this command - thank you - it solves a few other challenges I've been having!! Knut

    Author: Knut (knut.dybendahl@gmail.com)