Print Station not Running Designer Script
Hello,
On my document I have a drop-down entry on my userform. This is linked to a data source. I have a VB Script under transfers on the data source. An OnProcessData with an if statement. If value is 0, then cancel print.
It works perfectly on print preview on designer. If the value is 0, print is cancelled and I get a message box advising of the error.
However when I do the same thing using the Print Station, it doesn't work and allows the labels to print with 0 as the output.
Is there something I am missing or a better way to do this validation?
-
Hello John,
BarTender 2022 is currently having issues in Print Station 2022 with print preview, specifically with data entry forms that have certain validation/suppression. From how you described your script, I believe this is the issue you're encountering. (If you're not using Print Station 2022, then disregard.)
The workaround at this time would be to use earlier version of BarTender, such as BarTender 2021, or to not use Print Preview via Print Station. While there is no ETA for this fix, whenever we release our next revision of BarTender 2022, you can see what has been updated at this link: https://support.seagullscientific.com/hc/en-us/articles/5229192419095-BarTender-2022
1 -
This also effects "Actions" too from a Form, however there is a ("kind of") workaround for this if you set up a Document Level command.
The label does not print, and you get the following message displayed:
To configure this,
- make your field that will contain the 0 a Named Data Source (I called mine checker)
- Go to File>BarTender Document Options and choose the Actions tab
- Tick the enable Actions and then add a Stop action by clicking the blue plus after Identical Copies. The Stop can be found in the Execute menu
- Tick the Cancel Print Job box and set the other parameters as follows, getting the Name Data Source field name from the Other Variables option
1 -
Thanks Peter Thane. In the meantime I did get a workaround by using a similar method to yours.
I used VBscript at the document level for the OnNewRecord event. This seems to work ok.
0
Please sign in to leave a comment.
Comments
3 comments