Description: Executes a configured Excel export pack for an object and filter, adds the xlsx extension when needed, and optionally offers or triggers opening/downloading the result.
Calling convention: CIP_CallExcelExportPack("PackName": String, "ObjectName": String, "FilterName": string, "FileName": String,[AskForOpenFile:Boolean=False])
Parameters:
PackName: existing Excel export-pack name.
ObjectName: source object name.
FilterName: source filter name.
FileName: target path or file name; an empty string uses the pack name.
AskForOpenFile: TRUE allows the generated file to be opened after creation.
Returns: Generated base file name. Invalid required arguments or pack names raise an exception; the current uninitialized cancellation flag can skip execution while still returning a name.
Availability: Default desktop and web environments with Excel export support.
Example:
FileName := CIP_CallExcelExportPack("MonthlyExport", "DailyProduction", "CurrentMonth", "Monthly.xlsx", false);