Printer Activities for UiPath Manual

Printer Activities for UiPath Manual

Clear Printer Queue

Activity clears all jobs from queue assigned to printer, if printer name not provided, activity will be performed for default printer.

Get Data From Queue

Activity gets data from queue assigned to specific printer, if printer not precised default one is used. Data is returned as with columns:

1. PositionInQueue ? position of job in queue, 2. JobIdentifier ? job identifier, 3. DocName ? document name, 4. Status ? please note that default status is `None' (in Windows queue visible as empty string), 5. Owner ? user who submitted job to queue, 6. Pages ? number of pages to print, 7. Size ? size of document in bytes, 8. Submitted ? date and time when job has been submitted for printing.

One job from queue is one row in DataTable.

Known exceptions which activity can thrown:

1. Cannot get printer name! ? if provided (or default one if not provided) printer cannot be found, 2. Cannot get local print server! ? if local printer server cannot be localized, 3. There are not any queues available! ? if there are not any queues for provided printer 4. There are not any jobs in queue. ? if jobs on printer queue = 0

Optional input:

Printer ? printer name, you can obtain it using activity `List Printers', if printer name not provided default system printer is used,

Output:

No. of jobs ? returns count of jobs in queue, Queue details ? returns aforementioned DataTable with queue jobs details.

Get Default Printer

This activity returns name of default system printer as string. So for output you have to use variable, example below:

Example of use:

Result:

List Printers

This activity returns list of s with names of all system printers (also not-real ones like print to pdf or print to OneNote). For output you have to use list of strings (System.Collections.Generic.List):

Example of use: Result:

Result will depend from printers installed in your system.

Pause Printer

Stops provided printer name (or for default system printer if name not provided). It doesn't stop jobs in the queue, it stops whole printer as a hardware. It has the same effect if user open queue for printer, choose menu Printer -> Pause Printing Result:

Print File

This activity gives your Robot ability to print any file for which you have assigned in system default application which can print this file. Printing bases on default applications for extension. So, i.e: you will not be able to print *.doc file without MS Word application installed. Please note: each application will be opened for a few seconds, but will be also closed automatically! Tested for:

1. .pdf (Adobe Acrobat Reader DC 2020.013.20064.12623 & Foxit PhantomPDF Business 10.1.0.37527), 2. .doc, .docx, .xls, .xlsx, .ppt, .pptx (Microsoft Office 2010 & Microsoft Office 2016), 3. .txt (NotePad), 4. .jpg, .png, .gif, .bmp (MS Paint). Input: Input: full path to file,

Options Duplex setting: allows to print on one or two sides of page, if not provided default option is used, possible values:

o Duplex.Default ? use default setting defined printer options, o Duplex.Horizontal ? double-sided, horizontal print, o Duplex.Simplex ? single-sided, o Duplex.Vertical ? double-sided, vertical. Kill AdobeReader: o True (set as default), kill all AdobeReader (AcroRd32) instances before printing, it is needed to

prevent issues when printing pdf files using Adobe Reader, o False, AcroRd32 is not killed before printing Printer: name of the printer (you can obtain it using List Printers activity), if not provided, default system printer is used, Spooling time: default it is 2000ms (2 seconds), you can manipulate with this time if you have issues with printing, for larger files more time is needed to spool file so you can try to increase this time,

Optional Output:

Job ID: returns Job Identifier (Job ID) of document just sent to printer queue by this activity

Troubleshooting:

Please ensure that for specified file extension you have installed a software which can open and print it, ie. For .txt it is Notepad and it has to be set as default application for .txt in system:

Printer Status

Takes as input printer name (which can be obtained using List Printers activity) or uses default system printer.

As an output it returns a dictionary of (string, Boolean). String is a status name and Boolean is false of true for specific status. Your printer has to report specific status i.e. printer door is open to system, otherwise it will not be returned by this activity.

Keys/statuses in dictionary:

1. IsBusy - indicates whether the printing device is busy, 2. IsInError - indicates whether the printer or device is in an error condition, 3. IsDoorOpened - indicates whether a door is open on the printer, 4. IsOffline - indicates whether the printer is offline, 5. IsOutOfMemory - indicates whether the printer is out of memory, 6. IsOutOfPaper - indicates whether the printer needs to be reloaded with paper, 7. IsPaperJammed ? indicates whether the current sheet of paper is stuck in the printer, 8. IsPaused - indicates whether the print queue has been paused, 9. IsPrinting - indicates whether a job is printing, 10. IsTonerLow - indicates whether the printer is running short of toner, 11. HasToner - indicates if the printer has toner, 12. NeedUserIntervention - indicates whether the printer needs the attention of a human being. 13. HasPaperProblem - indicates if the printer is having an unspecified paper problem.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download