BarcodeDocumentProcessor COM Object


It is possible to call our Barcode Document Processor from other applications as a COM object. It can be used from Delphi, VC, C#, VB, scripts, etc.

Example

[Visual Basic]

'Create a new instance of Barcode Processor object
Dim oBarDocApp As BarcodeApplication
Set oBarDocApp = CreateObject("BarcodeProc.BarcodeApplication")
oBarDocApp.ExecuteProcessing ("c:\config.xml")
    
For i = 0 To oBarDocApp.ProcessingLog.length - 1
    Dim li As LogItem
    Set li = oBarDocApp.ProcessingLog.Item(i)
            
    Text1.Text = Text1.Text & "*************************************************" & vbCrLf
        
    'enumerate source files
    Text1.Text = Text1.Text & "SOURCE:" & vbCrLf
    For j = 0 To li.SourceFiles.length - 1
        Text1.Text = Text1.Text & li.SourceFiles.Item(j).FileName & ", deleted: " & _
        li.SourceFiles.Item(j).Deleted & ", pages: " & li.SourceFiles.Item(j).StartPage & _
        ", " & li.SourceFiles.Item(j).EndPage & ", pages total: " & _
        li.SourceFiles.Item(j).PageCount & vbCrLf
        
        'enumerate barcodes in a file
        Text1.Text = Text1.Text & "BARCODES:" & vbCrLf
        For k = 0 To li.SourceFiles.Item(j).PageDecodingResult.length - 1
            Text1.Text = Text1.Text & "page: " & _
            li.SourceFiles.Item(j).PageDecodingResult.Item(k).Page & _
            ", type: " & li.SourceFiles.Item(j).PageDecodingResult.Item(k).BarcodeType & _
            ", text: " & li.SourceFiles.Item(j).PageDecodingResult.Item(k).BarcodeText & vbCrLf
        Next k
    Next j

    'enumerate destination files
    Text1.Text = Text1.Text & "DESTINATION:" & vbCrLf
    For j = 0 To li.DestFiles.length - 1
        Text1.Text = Text1.Text & li.DestFiles.Item(j).FileName & ", saved: " & _
        li.DestFiles.Item(j).Saved & ", pages: " & li.DestFiles.Item(j).StartPage & ", " & _
        li.DestFiles.Item(j).EndPage & ", pages total: " & li.DestFiles.Item(j).PageCount & vbCrLf
    Next j
Next i




IBarcodeApplication Interface

Properties
ProcessingLogrReturns the ILogItemList object that contains the collection of log items.


Methods
ExecuteProcessing(ConfigFile)Runs barcode image processing.



Properties
lengthrIndicates the number of ILogItem items in the collection. Read-only.

Methods
item(index)Allows random access to individual nodes within the collection.
nextNode()Returns the next node in the collection.
reset()Resets the iterator.



Properties
SourceFilesrReturns the ISourceFileList object that contains the collection of source files. Read-only.
DestFilesrReturns the IDestFileList object that contains the collection of destination files. Read-only.



Properties
lengthrIndicates the number of ISourceFile items in the collection. Read-only.

Methods
item(index)Allows random access to individual nodes within the collection.
nextNode()Returns the next node in the collection.
reset()Resets the iterator.



Properties
FileNamerThe source file name without path. Read-only.
DeletedrWhether the source file has been deleted or not. Read-only.
StartPagerStarting page from the source file that got into the destination file. Read-only.
EndPagerEnding page from the source file that got into the destination file. Read-only.
PageCountrThe number of pages in the source file. Read-only.
PageDecodingResultrReturns the IPageDecodingList object that contains the collection of page decoding results. Read-only.



Properties
lengthrIndicates the number of IPageDecoding items in the collection. Read-only.

Methods
item(index)Allows random access to individual nodes within the collection.
nextNode()Returns the next node in the collection.
reset()Resets the iterator.



Properties
PagerThe page number with the decoded barcode. Read-only.
BarcodeTextrThe barcode text. Read-only.
BarcodeTyperThe barcode type. Read-only.



Properties
lengthrIndicates the number of IDestFile items in the collection. Read-only.

Methods
item(index)Allows random access to individual nodes within the collection.
nextNode()Returns the next node in the collection.
reset()Resets the iterator.



Properties
FileNamerThe destination file name with the full path. Read-only.
SavedrWhether the destination file has been saved or not. Read-only.
StartPagerStarting page from the file that got into this destination file. Read-only.
EndPagerEnding page from the file that got into this destination file. Read-only.
PageCountrThe number of pages in the destination file. Read-only.