Zum Hauptinhalt gehen

Suche

Suche

Connect To Db Only On Time Per Print Job

Kommentare

2 Kommentare

  • Avatar
    Legacy Poster

    I also tried to use Event Controls Scripts instead of Multi-Line Script.  I put the code that connects to the db in the "OnPrintStart" event and then put the code that updates and reads the recordset in the "OnNewRecord" event.  The code runs, but nothing is printed on the label.  I assume that the recordset variable that was declared in OnPrintStart is not accessible in the OnNewRecord event.  Attached is the label format.  The field in question is named "Text 9" and shows <Empty> just below the "WIP Cart-Slot" field heading.

     

    Am I stuck with connecting to the database for each label that prints?
     

    0
  • Avatar
    Michael Toupin (mtoupin

    Unfortunately that appears to be the issue.  There's not a way to maintain the database connection across multiple labels if you're using it in VB, every label is going to require a refresh of the VB script or it's only going to print the initial result.

    0

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