Click or drag to resize

PrinterUtilLoadProfile(String, String, FileDeletionOption) Method

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: 3.0.3271
Syntax
public static void LoadProfile(
	string connectionString,
	string profilePath,
	FileDeletionOption filesToDelete
)

Parameters

connectionString  String
The connection string.
profilePath  String
Path to the profile to load. (e.g. /home/user/profile.zprofile)
filesToDelete  FileDeletionOption
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