Click or drag to resize

PrinterUtilLoadProfile Method (String, String, FileDeletionOption)

Takes settings, alerts, and files from a profile, and applies them to a printer.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
public static void LoadProfile(
	string connectionString,
	string profilePath,
	FileDeletionOption filesToDelete
)

Parameters

connectionString
Type: SystemString
The connection string.
profilePath
Type: SystemString
Path to the profile to load. (e.g. /home/user/profile.zprofile)
filesToDelete
Type: Zebra.Sdk.PrinterFileDeletionOption
An enum describing which files to delete.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
ZebraPrinterLanguageUnknownExceptionIf the printer language could not be determined.
IOExceptionIf there is an issue creating the profile.
NotALinkOsPrinterExceptionThis feature is only available on Link-OS™ printers.
Remarks
Before doing so, it deletes the files described by filesToDelete from the printer.
See ConnectionBuilder for the format of connectionString.
See Also