Table of Contents

Codeunit "Printer Setup"

ID 2616
Namespace: System.Device

Exposes functionality to manage printer settings.

Properties

Name Value
Access Public

Events

OnOpenPrinterSettings

Integration event that is called to view and edit the settings of a printer. Subscribe to this event if you want to introduce user configurable settings for a printer.

[IntegrationEvent(False,False)]
internal procedure OnOpenPrinterSettings(PrinterID: Text, var IsHandled: Boolean)

Parameters

Name Type Description
PrinterID Text

A value that determines the printer being drilled down.

IsHandled Boolean

Stores whether the operation was successful.

OnSetAsDefaultPrinter

Integration event that is called to set the default printer for all reports. Subscribe to this event to specify a value in the Printer Name field and leave the User ID and Report ID fields blank in Printers Selection.

[IntegrationEvent(False,False)]
internal procedure OnSetAsDefaultPrinter(PrinterID: Text, UserID: Text, var IsHandled: Boolean)

Parameters

Name Type Description
PrinterID Text

A value that determines the printer being set as default.

UserID Text

A value that determines the user for whom the printer is being set as default. Empty value implies all users.

IsHandled Boolean

Stores whether the operation was successful.

GetPrinterSelectionsPage

Integration event that is called to get the page ID of the Printer Selection page.

[IntegrationEvent(False,False)]
internal procedure GetPrinterSelectionsPage(var PageID: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
PageID Integer

An out value that determines the id of the Printer Selection page.

IsHandled Boolean

Stores whether the operation was successful.

See also