ExportXMLSettings - export xml settings
Syntax
.net/com/java/ocx: Object.ExportXMLSettings(filePath)
dll: mtExportXMLSettings(hBarcode, filePath)
Parameters
hBarcode Handle to an instance of the barcode toolkit (dll only).
filePath Path to the xml file to be created.
Return Value
1/True on success and 0/False on failure.
Remarks
ExportXMLSettings saves the current property values to an XML format file. The settings could be modified and loaded again usingLoadXMLSettings.
The default set of properties is as follows:
<xml version=’1.0′ encoding=’iso-8859-1′>
<SoftekBarcode>
<Properties>
<AllowDuplicateValues>1</AllowDuplicateValues>
<BitmapResolution>200</BitmapResolution>
<CodabarMaxVariance>20</CodabarMaxVariance>
<Code25Checksum>0</Code25Checksum>
<Code25MinOccurrenceLength>5</Code25MinOccurrenceLength>
<Code39Checksum>0</Code39Checksum>
<Code39NeedStartStop>1</Code39NeedStartStop>
<ColorChunks>1</ColorChunks>
<ColorProcessingLevel>2</ColorProcessingLevel>
<ColorThreshold>0</ColorThreshold>
<ConvertUPCEToEAN13>1</ConvertUPCEToEAN13>
<Despeckle>0</Despeckle>
<Encoding>0</Encoding>
<ErrorCorrection>0</ErrorCorrection>
<ExtendedCode39>0</ExtendedCode39>
<GammaCorrection>100</GammaCorrection>
<LineJump>1</LineJump>
<MaxLength>999</MaxLength>
<MedianFilter>0</MedianFilter>
<MinSeparation>180</MinSeparation>
<MinLength>4</MinLength>
<MinOccurrence>2</MinOccurrence>
<MinSpaceBarWidth>0</MinSpaceBarWidth>
<MultipleRead>0</MultipleRead>
<NoiseReduction>0</NoiseReduction>
<PageNo>0</PageNo>
<PatchCodeMinOccurrence>30</PatchCodeMinOccurrence>
<Pattern></Pattern>
<Pdf417Debug>0</Pdf417Debug>
<PdfBpp>8</PdfBpp>
<PdfDpi>300</PdfDpi>
<Photometric>0</Photometric>
<PrefOccurrence>5</PrefOccurrence>
<QuietZoneSize>0</QuietZoneSize>
<ReadCodabar>1</ReadCodabar>
<ReadCode128>1</ReadCode128>
<ReadCode25ni>0</ReadCode25ni>
<ReadCode25>1</ReadCode25>
<ReadCode39>1</ReadCode39>
<ReadCode93>0</ReadCode93>
<ReadDatabar>0</ReadDatabar>
<ReadDataMatrix>0</ReadDataMatrix>
<ReadEAN8>1</ReadEAN8>
<ReadEAN13>1</ReadEAN13>
<ReadMicroPDF417>0</ReadMicroPDF417>
<ReadNumeric>0</ReadNumeric>
<ReadPatchCodes>0</ReadPatchCodes>
<ReadPDF417>0</ReadPDF417>
<ReadShortCode128>0</ReadShortCode128>
<ReadUPCA>0</ReadUPCA>
<ReadUPCE>1</ReadUPCE>
<ScanDirection>15</ScanDirection>
<ShortCode128MinLength>2</ShortCode128MinLength>
<SkewLineJump>9</SkewLineJump>
<SkewTolerance>0</SkewTolerance>
<ShowCheckDigit>0</ShowCheckDigit>
<ShowCodabarStartStop>1</ShowCodabarStartStop>
<SkewSpeed>3</SkewSpeed>
<UseOldCode128Algorithm>0</UseOldCode128Algorithm>
<UseRunCache>1</UseRunCache>
<UseOverSampling>0</UseOverSampling>
<WeightLongerBarcodes>1</WeightLongerBarcodes>
</Properties>
</SoftekBarcode>
</xml>
Win32 dll declarations:
VB.Net:
Private Declare Function mtExportXMLSettings Lib “SoftekBarcode” (ByVal hBarcode As System.IntPtr, ByVal strFile As String) As Short
Visual C++:
extern “C” {
int __stdcall stExportXMLSettings(LPCSTR filePath) ;
}