Microsoft Excel

Export Excel File

Activity converts Excel file into .pdf or .xps document.

In Exported File Path textbox you should type full path to the file (ending with the name of the destination file). If you do not fill in this textbox - the target file will be placed in the same place as the output .xlsx file with the same name as the output .xlsx file (with extension .pdf or .xps). If you don't specify a sheet name (in Worksheet Name textbox) - all sheet tabs that are in output .xlsx file will be converted. Page range (First Page, Last Page) of the converted file are optional parameters - without this informations all document will be converted. When specifying a page range, make sure you also specify the Worksheet Name.


There is a checkbox Ignore Print Area (default is on). If you want to convert only the previously created Print Area - remove the tick from the checkbox and make sure you also specify the Worksheet Name. In the case of an Excel file with many sheets, when you do not enter the name of a specific sheet, you will receive a sequence of converted pages consisting of entire output sheets (those in which the print area was not selected) interspersed with only print areas from sheets in which this setting was active.

NOTE: character limit in Exported File Path is 218.

Parameter NameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Display NameLiteralInputyou can change the name of activity for greater clarity of the scenario
Exclude from Transaction CheckBooleanInputcheckbox; default is "off"
Exported File PathStringInputfull path to an exported file ([disc]:\[directory_tree]\[filename])
First PageInt32InputExcel page range to be exported: number of page "from"
FormatDropdownInputchoose the target file format (.pdf or .xps)
Ignore Print AreaBooleanInputcheckbox; default is "on"
Last PageInt32InputExcel page range to be exported: number of page "to"
Retry timeout [s]DoubleInputwaiting time until the activity will execute: 1. any negative value means try once, if you fail – set Result to False and finish activity; 2. “0” means try until you get the effect; 3. any positive value is time in seconds in which the activity will persist trying until successful or the time elapses, if failed – set Result to False and finish activity
Workbook NameStringInputcustom internal name for Excel file, in order to identify Excel workbook in Wizlink
Worksheet NameStringInputname of the Excel sheet
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities

Last edited: 2023, 03 July.