Click or drag to resize

ProfileGetObjectFromPrinter(String) Method

Retrieves a file from the profile and returns the contents of that file as a byte array.

Namespace: Zebra.Sdk.Device
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public byte[] GetObjectFromPrinter(
	string filePath
)

Parameters

filePath  String
The absolute file path on the printer ("E:SAMPLE.TXT").

Return Value

Byte
The file contents

Implements

FileUtilLinkOsGetObjectFromPrinter(String)
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf the filePath is invalid, or if the file does not exist on the printer.
Remarks
Will retrieve the following file extensions: ZPL, GRF, DAT, BAS, FMT, PNG, LBL, PCX, BMP, WML, CSV, HTM, BAE, TXT.

Files transferred between different printer models may not be compatible.
See Also