|
|
|||||||||
|
|
|
|
|
|
|||||
|
Help -> Methods -> TheSoftekBarcodeReaderSDKextractsbarcodeinformationfromimagesand The Softek Barcode Reader SDK extracts barcode information from images and bitmaps. The Softek Barcode Reader SDK extracts barcode information from images and bitmaps. LoadXMLSettingsOverview LoadXMLSettings(file, silent)
Load settings from the specified XML file. This method can also be used to define sets of properties to be applied sequentially to an image until a barcode is located. It's also possible to specify properties that only apply to particular pages of an image. The silent parameter controls whether message message boxes will be displayed if there is a parsing error. The simplest format for the xml is as follows:
<xml> Example: Set MedianFilter to 1 (True) and set ReadCode25 to 0 (False). <xml> The xml file can also be used to apply sets of properties sequentially to an image until a barcode is found: This example first applies default values to an image. If no barcode is found then a MedianFilter is applied. <xml> This example restricts the search to the first 3 pages of an image, until a barcode is located: <xml> 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>0</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. Visual Basic using the OCXretval = [form.]SoftekBarcode.LoadXMLSettings(file, 0) Visual Basic using the DLL
Private Declare Function stLoadXMLSettings Lib "SoftekBarcode" (ByVal strFile
As String, ByVal silent as Boolean) As Integer Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode") VB.Net using the DLL
Private Declare Function stLoadXMLSettings Lib "SoftekBarcode" (ByVal strFile
As String, ByVal silent as Boolean) As Short VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode VB.Net using the SoftekBarcodeLib Managed Component Dim barcode As SoftekBarcodeLib.BarcodeReader Visual C++ Using the OCX short LoadXMLSettings(file, 0) Visual C++ Using the DLL short __stdcall stLoadXMLSettings(LPCTSTR file, unsigned char silent); See Also |
| © 1998-2007 Softek Software Ltd. All rights reserved. |
| © 1998-2008 Softek Software Ltd. All rights reserved. |