Call Script On Every Print Job 追蹤

0
Avatar
Legacy Poster

I need to make a database entry with form data from Bartender every time something is printed. Is there a way to pass this data onto a script? It seems that most of the integration options only allow for calling Bartender externally not for calling another action from within bartender itself.

 

Thanks

Chris

4 意見

0
Avatar
Ian Cummings
版主
評論操作 永久連結

Not sure on you question here.  Are you trying to update a record in a database, after a BarTender print job, where the updated record includes data from the print job?

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

Yes, exactly. I would like to enter multiple values supplied to the template to update a remote MSSQL database.

0
Avatar
Ian Cummings
版主
評論操作 永久連結

For each data source that is set via the data entry form you should specify a data source name so that you may directly reference them from within the VB script.  I'd suggest that you use an event based VB script wth an end of print job being used for making the SQL Server database connect and then committing the database update transaction.

 

If you search Google with something like "VBS update SQL Server database" you should find guidance of the script needed to make a connection and update a record.

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

Awesome, thanks for your help

登入寫評論。