Skip to main content

Search

Search

Updating Database Before/after Printing Barcodes

Comments

1 comment

  • Avatar
    Shotaro Ito
    Hi Paul,

    As BarTender's database connection is read-only,
    You need to set script on OnSerialize event of Event control script in datasource, to write back value for each serialized label.

    To connect and update Oracle via VBScript, see some web resources such as.. (oh, not much.)

    VBScript and Oracle
    www.justkez.com/vbscript-and-oracle

    Rollback Oracle transactions in VBScript
    dev-notes.com/code.php?q=67

    Another thought is using text job log function, Available in Automation edition or above.
    In Administer menu > Log setup > Text file log tab > Log print job information > setup, you can create job log.
    By Organisation:[Separate Files], you can create text file for each print job.
    By Output type:[Quote And Comma Delimited], you can create CSV file which easier to work with oracle.
    By disable all options in Header tab and Footer tab, then set desired column in Per label tab, the csv row will be created for each serialized labels.
    You need an application to pick the CSV file and update database though. (Wonder Commander and OS command to run VBScript works or not.)

    Hope that helps!
    0

Please sign in to leave a comment.