bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation TifSplitMode - specify mode in which to split TIF documents

TifSplitMode - specify mode in which to split TIF documents

Overview

TifSplitMode controls the way in which multi-page TIF files are split into sub-files when the TifSplitPath property is set. A value of 0 means that the sub-files will each start on a page with a bar code (or page 1). A value of 1 means that each sub-file will terminate on a page with a barcode (or the last page) and a value of 2 means that each sub-file consists of the pages between (but not including) the barcodes.

For example, a 6 page TIF file with barcodes on pages 2 and 5 will split as follows:

TifSplitMode = 0: First sub-file contains page 1. Second sub-file contains pages 2, 3 and 4. Third sub-file contains pages 5 and 6.

TifSplitMode = 1: First sub-file contains pages 1 and 2. Second sub-file contains pages 3, 4 and 5. Third sub-file contains page 6.

TifSplitMode = 2: First sub-file contains page 1. Second sub-file contains pages 3 and 4. Third sub-file contains page 6.

Default value =     0

Visual Basic using the OCX

[form.]SoftekBarcode.TifSplitMode = value

Visual Basic using the DLL

Private Declare Function stGetTifSplitMode Lib "SoftekBarcode" () As Short
Private Declare Function stSetTifSplitMode Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetTifSplitMode (value)
value = stGetTifSplitMode ()

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.TifSplitMode = value
value = oBar.TifSplitMode

VB.Net using the DLL

Private Declare Function stGetTifSplitMode Lib "SoftekBarcode" () As Short
Private Declare Function stSetTifSplitMode Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetTifSplitMode (value)
value = stGetTifSplitMode ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetTifSplitMode(value)
value = barcode.GetTifSplitMode()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetTifSplitMode(value)
value = barcode.GetTifSplitMode()

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.TifSplitMode = 1

Note that this is not implemented in the DotNet 1 version of the component.

Visual C++ Using the OCX

BOOL GetTifSplitMode();
void SetTifSplitMode(BOOL value) ;

Visual C++ Using the DLL

BOOL __stdcall stGetTifSplitMode();
BOOL __stdcall stSetTifSplitMode(BOOL newValue);