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
Properties |
ProcessingLog | r | Returns the ILogItemList object that contains the collection of log items. |
Methods |
ExecuteProcessing(ConfigFile) | Runs barcode image processing. |
Properties |
length | r | Indicates 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 |
SourceFiles | r | Returns the ISourceFileList object that contains the collection of source files. Read-only. |
DestFiles | r | Returns the IDestFileList object that contains the collection of destination files. Read-only. |
Properties |
length | r | Indicates 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 |
FileName | r | The source file name without path. Read-only. |
Deleted | r | Whether the source file has been deleted or not. Read-only. |
StartPage | r | Starting page from the source file that got into the destination file. Read-only. |
EndPage | r | Ending page from the source file that got into the destination file. Read-only. |
PageCount | r | The number of pages in the source file. Read-only. |
PageDecodingResult | r | Returns the IPageDecodingList object that contains the collection of page decoding results. Read-only. |
Properties |
length | r | Indicates 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 |
Page | r | The page number with the decoded barcode. Read-only. |
BarcodeText | r | The barcode text. Read-only. |
BarcodeType | r | The barcode type. Read-only. |
Properties |
length | r | Indicates 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 |
FileName | r | The destination file name with the full path. Read-only. |
Saved | r | Whether the destination file has been saved or not. Read-only. |
StartPage | r | Starting page from the file that got into this destination file. Read-only. |
EndPage | r | Ending page from the file that got into this destination file. Read-only. |
PageCount | r | The number of pages in the destination file. Read-only. |