FileUtilLinkOsStoreFileOnPrinter(String) Method
|
Stores the file on the printer using any required file wrappers.
Namespace: Zebra.Sdk.DeviceAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax void StoreFileOnPrinter(
string filePath
)
Sub StoreFileOnPrinter (
filePath As String
)
void StoreFileOnPrinter(
String^ filePath
)
Parameters
- filePath String
-
The full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.zpl").
Exceptions 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)
If the full name is longer than 16.3 characters (16 for the file name and 3 for the extension), the file will be stored with a truncated full name.
If that full name is already being used, it will overwrite the existing file.
(e.g. "C:\\Users%USERNAME%\\Documents\\sample_long_name_on_printer.zpl" is truncated to "R:SAMPLE_LONG_NAME.ZPL")
See Also