Skip to main content

Search

Search

Serialization And Multiple Copies From Vb6

Comments

4 comments

  • Avatar
    Philip Dea
    Moderator
    If I understand correctly, you can simply do the following:
    1) In your label, make your barcode serialized and give it a share name. e.g., BCValue
    2) From "File > Print" menu, set both "number of copies" and "number of serialized labels" to be data sourced and assign share name. e.g., NumCopies and NumSerialized
    3) In your code, simply set BCValue to the start value in your database (ie., 5000). Set NumCopies to 3 and NumSerialized to 1000.
    4) Print
    You are only issuing a single print command w/o any loops. This will allow BarTender to optimize the printer code.

    Pseudo code to print labels 5000, 5000, 5000, 50001, 50001, 5001, etc., below:

    $btapp = ObjCreate("Bartender.Application")
    $btapp.visible =True
    $btFormat = $btApp.Formats.Open("F:\SerializationVB.btw", False, "")
    $btFormat.SetNamedSubStringValue( "BCValue", "5000" )
    $btFormat.SetNamedSubStringValue( "NumCopies", "3" )
    $btFormat.SetNamedSubStringValue( "NumSerialized", "1000" )
    $btFormat.PrintOut(False, False)
    0
  • Avatar
    Legacy Poster
    [quote name='Philip D - Seagull Support' timestamp='1317869351' post='759']
    If I understand correctly, you can simply do the following:
    1) In your label, make your barcode serialized and give it a share name. e.g., BCValue
    2) From "File > Print" menu, set both "number of copies" and "number of serialized labels" to be data sourced and assign share name. e.g., NumCopies and NumSerialized
    3) In your code, simply set BCValue to the start value in your database (ie., 5000). Set NumCopies to 3 and NumSerialized to 1000.
    4) Print
    You are only issuing a single print command w/o any loops. This will allow BarTender to optimize the printer code.

    Pseudo code to print labels 5000, 5000, 5000, 50001, 50001, 5001, etc., below:

    $btapp = ObjCreate("Bartender.Application")
    $btapp.visible =True
    $btFormat = $btApp.Formats.Open("F:\SerializationVB.btw", False, "")
    $btFormat.SetNamedSubStringValue( "BCValue", "5000" )
    $btFormat.SetNamedSubStringValue( "NumCopies", "3" )
    $btFormat.SetNamedSubStringValue( "NumSerialized", "1000" )
    $btFormat.PrintOut(False, False)
    [/quote]


    This is [b]exactly[/b] what I require and it works brilliantly.

    Many thanks for the fantastic service and also not forgetting the fantastic software.
    0
  • Avatar
    Legacy Poster
    Everytime I try to print more than one copy only one copy comes out..
    Uninstalled printer, Reinstalled it.. Loaded new drivers on it.. Prints
    copies in Excel, Powerpoint etc. Just wont print multiple copies in Word.

    Repaired it first... No Success...Uninstalled Microsoft office than
    reinstalled it... didnt fix it..

    Need Help.. User needs to be able to print copies for meetings etc.
    0
  • Avatar
    Philip Dea
    Moderator
    [quote name='NewsEvomiDic' timestamp='1323197207' post='1233']
    Everytime I try to print more than one copy only one copy comes out..
    Uninstalled printer, Reinstalled it.. Loaded new drivers on it.. Prints
    copies in Excel, Powerpoint etc. Just wont print multiple copies in Word.

    Repaired it first... No Success...Uninstalled Microsoft office than
    reinstalled it... didnt fix it..

    Need Help.. User needs to be able to print copies for meetings etc.
    [/quote]
    Can you please describe how you are printing from BarTender to Excel, Word, etc.?
    0

Please sign in to leave a comment.