Activex And Queryprompts 追蹤

0
Avatar
Legacy Poster

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").

1 意見

0
Avatar
Legacy Poster
評論操作 永久連結

Found the answer (in case anyone faces the same issue):
oLabel.Databases.QueryPrompts.GetQueryPrompt("QueryPrompt1").Value = "0007"

登入寫評論。