Scripted Values Not Updating On First Print 追蹤

Legacy Poster

I have a main script that runs when you print. It asks for various fields to be populated. I then have a text box called myvar for a variable that is generated by looking at one of the scanned/populated values. The main script also then uses this variable. Everything works correctly with one exception. The text box for the variable does not update on the first print. After you print the first label it updates but prints out the previously used variable on the first print of a new one. Any ideas on why it won't update on the first print?