Printer Activities

Custom Activity

Custom Activity

Updated: October 23rd, 2020

Published: May 30th, 2019

Downloads: 171

Language compatibility: Visual Basic

Community Support

Printer Activities

Custom Activity

Summary: 

Set of activities to handle printing using UiPath

This set of activities gives your Robot the ability to print documents. Get/set default printer, get list of all printers, print PDF, print doc, xls, txt, ppt and get data from printer queue.
Get Default Printer: returns string with default system printer name.
List Printers: returns list of <strings> with names of all installed system printers.
Print file: this activity gives you a possibility to print *.doc, *.docx, *.xls, *.xlsx, *.txt, *.ppt and *.pptx files. You can choose which printer you want to use for printing (use list printers activity to obtain name) or default system printer will be used.
This activity uses default application for printing, it means that for all these files there is the need of a proper application to be installed and set as default for the specific file (*.doc, *.docx => MS Word, *.xls, *.xlsx => MS Excel, *.txt = Notepad, *.ppt, *.pptx => MS PowerPoint), otherwise it will not be possible to print the file.
Print PDF: activity for PDF files printing, uses Adobe Reader for printing, so Adobe Reader has to be installed and set as default application for .pdf files. You can choose which printer you want to use for printing (use list printers activity to obtain the name) or default system printer will be used.
Set Default Printer: activity to set default system printer, please use 'List Printers' activity to obtain the name.
Get Data From Queue: activity gets data from default Printer Queue (job name, status, amount of pending jobs etc. - more details in manual).

Details

Benefits

You can easily print documents without writing a single line of code or handling printer window.
You can also get the amount of pending jobs in queue and details of jobs.

Compatibility

Build and tested on UiPath 2019.5.0, Windows 10.

Dependencies

For *.pdf printing: https://get.adobe.com/pl/reader/ installed and set as default app for .pdf
For MS Office documents printing: MS Office installed and apps set as default for corresponding extensions (*.doc, *.docx => MS Word, *.xls, *.xlsx => MS Excel, *.ppt, *.pptx => MS PowerPoint)
For *.txt printing MS Notepad

Resources

- UiPath_Custom_Printer_Activities_Manual.pdf

Licensing

By clicking download you agree to the following license.