Task System - Print Document
The Print document Task prints files on a printer of the VisualCron Server computer. It prints PDF, Word, Excel, PowerPoint, HTML, image and text files.
The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.
Print document tab
The Print document tab has two sub tabs:
- File filter: selects the files to print; see File filter. Every file that the filter returns is printed
- Print settings: the printer and the print options below

- Select printer: the printer to use. The list shows the printers of the VisualCron Server computer

-
Paper source (Printer settings group): the paper tray. Used for image, PDF and text files only
-
All Pages (Page range group): prints the whole file. Selected by default
-
Page Range: prints only the pages entered in the field below it, as page numbers and ranges separated by commas, for example
1,3,5-12For Excel files, enter one range, for example
1-3. For PowerPoint files, the options are All Slides and Slides, and the field takes slide numbers. For text files, only All Pages is available. -
Number of copies (Pages group): the number of copies. The default is "1"
-
Auto, Portrait or Landscape (Orientation group): the page orientation. The default is "Portrait". Auto is used for PDF files only, where it follows the shape of the first page; other files print in portrait with Auto
-
Left, Right, Top and Bottom (Margin group): the page margins. The default is "2" for each
-
Auto detect document type from extension (Document group): selected by default. The Task chooses the document type from the file extension:
.pdf: PDF.docand.docx: Word.xlsand.xlsx: Excel.pptand.pptx: PowerPoint.htmand.html: HTML.jpg,.png,.gifand.bmp: image.txtand every other extension: text
Because any other extension is printed as text, check that the extensions are correct.
-
Specify document type: prints every file as the type selected in the list: "Word" (default), "Excel", "PowerPoint", "Image", "Text", "HTML", "PDF" or "Other". With "Other", the Task uses the Print command that Windows associates with the file type
-
Password: the password of password-protected PDF files
-
Use fallback method: for PDF files only, prints with a second PDF print method. Try it when a PDF file does not print correctly, for example in landscape
Word, Excel and PowerPoint files are printed through Microsoft Office, which must be installed on the VisualCron Server computer.
Output and errors
The output lists the path of each printed file, one per line.
Troubleshooting
The printer is not in the list
The list shows the printers of the VisualCron Server computer. By default, the VisualCron Server service runs as the SYSTEM account, and that account must have access to the printer. Check the sharing permissions of the printer.
Landscape mode is not working
For PDF files, select Use fallback method.