UniPRT SDK  v1.0.0.0
UniPRT.Sdk.Settings.Config Class Reference

Container for printer configuration. More...

Public Member Functions

 Config (string cfgContent)
 cfgContent is data received from printer or data previously saved to file and reloaded.
 
override string ToString ()
 The configuration content sent/received from printer.
 

Properties

string Data [get]
 The printer configuration values. These should not be modified. More...
 
string Model [get, set]
 The Model of the printer configuration is valid for. More...
 
string Name [get, set]
 The configuration name. This property can be left empty if naming is not desired. More...
 
int Number [get, set]
 Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations. More...
 
string ProgramFile [get, set]
 The printer program file that configuration can be downloaded to. More...
 

Detailed Description

Container for printer configuration.

Printers can hold multiple configurations.
Reading/Writing different configurations can be done by using the Number property.

Property Documentation

◆ Data

string UniPRT.Sdk.Settings.Config.Data
get

The printer configuration values. These should not be modified.

These values should not be modified and should only be read, stored for backup purposes, and redownloaded to printer.

◆ Model

string UniPRT.Sdk.Settings.Config.Model
getset

The Model of the printer configuration is valid for.

The configuration can only be downloaded to the printers that match the model.

◆ Name

string UniPRT.Sdk.Settings.Config.Name
getset

The configuration name. This property can be left empty if naming is not desired.

The property can be used to give the configuration a more descriptive name. e.g., "ShipLabel"
Note that name should be kept short to prevent truncation by printer.

◆ Number

int UniPRT.Sdk.Settings.Config.Number
getset

Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations.

This number refers to the configuration number stored in the printer memory.

◆ ProgramFile

string UniPRT.Sdk.Settings.Config.ProgramFile
getset

The printer program file that configuration can be downloaded to.

If left empty, printer will not prevent downloading configuration to different Program File.
Leave this with value read from printer if you want to make sure configuration is only applied to printers with matching Program File.