Activex And Queryprompts
What is the VBscript ActiveX command to fill in the data for a QueryPrompt. I try using:
set oBartender = CreateObject("BarTender.Application")
set oLabel = oBartender.Formats.Open("C:\test.btw",1,"Bradyprinter Model 3481")
oLabel.DatabaseConnections.QueryPrompts("QueryPrompt1").Value="0001"
The first two lines work fine, but it bombs on the 3rd line (object doesn't support this property or method "oLabel.DatabaseConnections").
set oBartender = CreateObject("BarTender.Application")
set oLabel = oBartender.Formats.Open("C:\test.btw",1,"Bradyprinter Model 3481")
oLabel.DatabaseConnections.QueryPrompts("QueryPrompt1").Value="0001"
The first two lines work fine, but it bombs on the 3rd line (object doesn't support this property or method "oLabel.DatabaseConnections").
0
-
Legacy Poster
★ BarTender Hero ★
Found the answer (in case anyone faces the same issue):
oLabel.Databases.QueryPrompts.GetQueryPrompt("QueryPrompt1").Value = "0007"0
請登入寫評論。
評論
1 條評論