ExportXMLSettings
Overview
int STExportXMLSettings(void *hBarcode, char *filePath)
hBarcode is a handle to a barcode session.
filePath is the path to the XML file.
ExportXMLSettings saves the current property values to an XML format file. The settings could be modified and loaded again using LoadXMLSettings.
The default set of properties is as follows:
<xml version='1.0' encoding='iso-8859-1'> <SoftekBarcode> <Properties> <AllowDuplicateValues>1</AllowDuplicateValues> <Code39Checksum>0</Code39Checksum> <Code39NeedStartStop>1</Code39NeedStartStop> <ColorThreshold>0</ColorThreshold> <ConvertUPCEToEAN13>1</ConvertUPCEToEAN13> <Despeckle>0</Despeckle> <ErrorCorrection>0</ErrorCorrection> <ExtendedCode39>0</ExtendedCode39> <LineJump>1</LineJump> <MaxLength>999</MaxLength> <MedianFilter>0</MedianFilter> <MinSeparation>180</MinSeparation> <MinLength>4</MinLength> <MinOccurrence>2</MinOccurrence> <MinSpaceBarWidth>1</MinSpaceBarWidth> <MultipleRead>0</MultipleRead> <NoiseReduction>0</NoiseReduction> <Pattern></Pattern> <PageNo>0</PageNo> <PrefOccurrence>5</PrefOccurrence> <QuietZoneSize>0</QuietZoneSize> <ReadCodabar>1</ReadCodabar> <ReadCode128>1</ReadCode128> <ReadCode25ni>0</ReadCode25ni> <ReadCode25>1</ReadCode25> <ReadCode39>1</ReadCode39> <ReadEAN13>1</ReadEAN13> <ReadNumeric>0</ReadNumeric> <ReadPatchCodes>0</ReadPatchCodes> <ReadPDF417>1</ReadPDF417> <ReadUPCA>0</ReadUPCA> <ReadUPCE>1</ReadUPCE> <ScanDirection>15</ScanDirection> <SkewTolerance>0</SkewTolerance> <ShowCheckDigit>0</ShowCheckDigit> <UseOverSampling>0</UseOverSampling> </Properties> </SoftekBarcode> </xml>Return Value
1 on success and 0 on failure.