Serialiazing Programatically Follow

Legacy Poster

Hi, I want to serialize a label, and have achieved to change the number of serialized labels through the activex but have no idea how to change the increment property of a serialized field.


below is part of my code:


 'Declaring a BarTender application variable 
        Dim btApp As BarTender.Application
        'Declaring a format variable 
        Dim btFormat As BarTender.Format
            'Instantiating the BarTender object 
            btFormat = New BarTender.Format
            btApp = New BarTender.Application
            btApp.Visible = False
            btApp.Window.WindowState = BarTender.BtWindowState.btNormal
            btApp.Window.Height = 400
            btApp.Window.Width = 650
            'Setting the BarTender format to open 
            btFormat = btApp.Formats.Open("C:\etiquetas\auto2013\xxx.btw", True, "")
' in this way it seems not to work            
'btApp.ActiveFormat.NumberSerializedLabels = 10
            ' making the property numberSerializedLabels a shared substring it works
            btApp.ActiveFormat.SetNamedSubStringValue("series", 12)
' ????????? and know how to change the increment of this named substring ?


Domingo Rodriguez
Comment actions Permalink

In BarTender v10.1 we've added some advanced serialization features, among which you can now set the increment for the serial number by a "named data source". You just need to programmatically modify this "named data source" via your application and your serialization increment can be programmatically modified.

Please sign in to leave a comment.