Click or drag to resize

FileUtilLinkOsStoreFileOnPrinter Method (String, String)

Stores the file on the printer at the specified location and name using any required file wrappers.

Namespace:  Zebra.Sdk.Device
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax
void StoreFileOnPrinter(
	string filePath,
	string fileNameOnPrinter
)

Parameters

filePath
Type: SystemString
The full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.zpl").
fileNameOnPrinter
Type: SystemString
The full name of the file on the printer (e.g "R:SAMPLE.ZPL").
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
IOExceptionIf there is an issue reading the file
ZebraIllegalArgumentExceptionIf fileNameOnPrinter is not a legal printer file name.
Remarks
If the contents of filePath contains any commands which need to be processed by the printer, use SendFileContents(String) instead. These commands include download commands and any immediate commands(~CC, ~CD, ~DB, ~DE, ~DG, ~DY, ~EG, ~HI, ~HU, ~HM, ~HQ, ~HS, ~JA, ~JB, ~JC, ~JD, ~JE, ~JF, ~JG, ~JI, ~JL, ~JN, ~JO, ~JP, ~JQ, ~JR, ~JS, ~JX, ~NC, ~NT, ~PL, ~PP, ~PR, ~PS, ~RO, ~SD, ~TA, ~WC, ~WQ, ^DF)
See Also