Zum Hauptinhalt gehen

Suche

Suche

Vb & Shared Data Sources Bug In Barcode ?

Kommentare

2 Kommentare

  • Avatar
    Legacy Poster

    Bump

    0
  • Avatar
    Fernando Ramos Miracle

    Hello John,

     

    I've sent you an email on this matter (you contacted us through email directly), but I'd like to provide an answer here too for other forum user's benefit:

     

    The problem you are seeing is due to the type of VB script you are using and how BarTender actually works.
     
    Currently you are using a "Single-Line Expression" VB script. When doing so BarTender needs to guess when it should run the script by its contents.
     
    Understand that BarTender runs through a series of events: At print start, before the user prompt, after the user prompt, for each record, for each serialized copy, for each identical copy, at the end of the print job,…
     
    In your case you need the script to run "After the user prompt", or the script won't receive the correct data. With your design as it is, BarTender doesn't know that the script needs to run at that time.
     
    What you need to do to fix the issue:
     
    1.     Change the type of VB script to "Event Control Scripts".
     
    2.     Edit the script in order to add the appropriate code to the "OnPostPrompt" event (that is: the event after the user enters the data in the Data Entry Control).
     
    The above will solve your issue, allowing you to get the appropriate data to the barcode.
     
    Best regards.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.