Vbscriptt As Query Prompt Value
I am reading a line from a file to use as the query prompt value, I have the VBScript setup and when I click test I get the value from the file just as I want it. when I click ok to save, it tells me Warning Message #5901 The script did not read from the "Value" property.
basically, the value is not being passed to the query parameter prompt because this error. Why?
this is the setup:
Database Connections Setup
Query tab
LabelFile.Field = ?GetData
?GetData is a VBScript that reads a line from a text file and returns it to value.
*edit
When I print the label from bartender, the prompt comes up on the screen, I can put whatever I want into that prompt but it will print the label according to the value in the text file that is storing the scanned in value - is there a way to just bypass or suppress the prompt all together?
If you need more information than that, this is the entire process.
Serial Trigger - saves value of Serial Port scan to a text file and creates a trigger file for print job.
trigger file then prints the barcode label by matching the scanned in value that is saved in the text file to the record in the data source file by using the query prompt.
Is there a different way I should be doing this?
-
The query prompt dialog will always appear in BarTender when you've setup a query prompt.
If you plan to automate BarTender, please note that you can assign the query prompt value programmatically via the external application (e.g. Commander or a .NET SDK application), in which case you wouldn't require the VBScript.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar