Skip to content

Codeunit wDCR_ExportProfileMgt

Provides functions to work with export profiles.

Properties

Name Value
Access Public

Methods

wgFncApplyPDFMergesToDocument(wDCR_ExportProfile, InStream@):Boolean

Applies the PDF Merges of the specified export profile to the passed PDF document.

Parameters

Type Name Description
Record "wDCR_ExportProfile" pRecwDCR_ExportProfile The export profile.
InStream vInStreamOutputDoc The PDF Document as a Stream.

Returns

Type Description
Boolean true if PDF merges were applied

wgFncClearPDFMergeFile(wDCR_ExportProfilePDFMerge@)

Clears the merge PDF for the passed export profile.

Parameters

Type Name Description
Record "wDCR_ExportProfilePDFMerge" vRecwDCR_ExportProfilePDFMerge The Document Creator Export Profile

wgFncExportPDFMergeFile(wDCR_ExportProfilePDFMerge@)

Exports a PDF file of a Document Creator Export Profile, prompting the user for a destination to save the file.

Parameters

Type Name Description
Record "wDCR_ExportProfilePDFMerge" vRecwDCR_ExportProfilePDFMerge The Document Creator Export Profile PDF Merge.

wgFncExportPDFMergeFile(wDCR_ExportProfilePDFMerge@, Codeunit::System#Utilities#Temp Blob@)

Exports a PDF file of a Document Creator Export Profile and saves it to a Temp Blob.

Parameters

Type Name Description
Record "wDCR_ExportProfilePDFMerge" vRecwDCR_ExportProfilePDFMerge The Document Creator Export Profile PDF Merge.
Codeunit "Temp Blob" vCduTempBlob A Temp Blob to save the merge PDF to.

wgFncImportPDFMergeFile(wDCR_ExportProfilePDFMerge@)

Imports a merge PDF file for a Document Creator Export Profile, prompting the user to upload a PDF file.

Parameters

Type Name Description
Record "wDCR_ExportProfilePDFMerge" vRecwDCR_ExportProfilePDFMerge The Document Creator Export Profile.

wgFncImportPDFMergeFile(wDCR_ExportProfilePDFMerge@, Codeunit::System#Utilities#Temp Blob, Text)

Imports a merge PDF file for a Document Creator Export Profile.

Parameters

Type Name Description
`` vRecwDCR_ExportProfile The Document Creator Export Profile.
`` pCduTempBlob The Temp Blob containing the merge PDF.
`` pPdfFileName The file name of the merge PDF.

wgFncOpenExportProfilePage(Report Layout List)

Opens the Document Creator Export Profile page for a report layout record. If none is specified, the page will be opened for the default export profile.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout record.

wgFncOpenExportProfilePage(Custom Report Layout)

Obsolete

Document Creator layouts have been moved to the report layout system tables. 2.0.0.0

Opens the Document Creator Export Profile page for a custom report layout record. If none is specified, the page will be opened for the default export profile.

Parameters

Type Name Description
Record "Custom Report Layout" pRecCustomReportLayout The Custom Report Layout record.

wgFncPDFMergesExistForExportProfile(wDCR_ExportProfile):Boolean

Gets whether PDF Merges exist for a export profile.

Parameters

Type Name Description
Record "wDCR_ExportProfile" pRecwDCR_ExportProfile The export profile.

wgFncOpenExportProfilePage(wDCR_LayoutSettings)

Opens the Document Creator Export Profile page for a report layout record. If none is specified, the page will be opened for the default export profile.

Parameters

Type Name Description
Record "Report Layout List" pRecReportLayoutList The Report Layout record.