Print files

The Print files block allows you to print specific files from a defined folder.
The block can be accessed from the menu Settings | Documentation | Workflow Design by clicking the panel Design | Input/Output.
 |
WARNING
To use the Print files block, you are required to have pre-installed an application for running an overview of document types. For example, to print PDF files, it is necessary to have Adobe Reader installed.
|
You can use one of the two options to specify the files for printing (you can also use both options at the same time):
– Using the FileName variable. You can specify one or more file names (with full path) for printing. If more than one file is to be printed, the files must be separated by semicolons. You can use wildcards ('*', '?') to specify multiple files (or folders) at the same time.
– Using the WorkFolder and PrintFilenamesMask variables. In the WorkFolder variable, you can specify one or more folders (if more than one folders is used, the folders must be separated by semicolons) from which the files are to be printed. You can use wildcards in folder names. In PrintFilenamesMask you can specify a mask for the files you want to print. You can also use wildcards here.
For example:
– FileName := 'c:\files\readme.txt;c:\files\*pdf;c:\files\*.doc*;c:\files\tmp*\*.pdf' – Prints the 'readme.txt' file from the 'c:\files' folder, prints the PDF, DOC and DOCX files from the 'c:\files' folder, prints the PDF files from all subfolders of the 'c:\files' folder, if the subfolder name starts with 'tmp'.
– WorkFolder := 'c:\files;c:\files\tmp*\' and PrintFilenamesMask := '*.pdf' – Prints all PDF files from the 'c:\files' folder and its subfolders if the subfolder name starts with 'tmp'.

Double-clicking the block reads data from the WorkFolder and/or PrintFilenamesMask variables.
The variables can be accessed by clicking the
(Variables) icon in the Design toolbar.
Select Mailbox and settings for Operations from mailbox are transfered from the selected mailbox. Select Resource Printer.
Print files one by one - When enabled, next file will be sent to printer after printing of prior file is finished. When parameter is disabled, files are sent to printer without wait while printing of prior files are finished. This parameter can be usefull when printing files to pdf. When disabled all files are printed 'at once' and several save dialogs are opened at the sametime. When this parameter is enabled, files are printed one by one and user can see what file is printing at the moment.
If Resource filed is left empty, program will ask and offer Printers that are set in Data field. If also Mailbox is left empty, program will execute printing on default Printer set in Windows settings.


 |
HINT
For more information on how to use the Print files block, see the User manual for eWorkflows.
|