Format.writetolog S’abonner

0
Avatar
Legacy Poster

Hello,

I am new in Bartender and have a little experience with VB.

Somehow I want to log the labels that are already printed.

The function Format.WriteToLog(«String») allows me to write some data into a log file.
I’ve added “Format.WriteToLog("abcdef")” in Modify Selected Text Object -> Source : Visual Basic Script -> Single Line expression.
Unfortunately - after printing a label - I am not able to find the string “abcdef” in whatever type of file on the PC.
Is there anyone that could explain me how to use this function or how to log the labels that are already printed?

Thanks,
Arnold

5 commentaires

0
Avatar
Ian Cummings
Modérateur

You first need to set-up the print job log to text file. Once this is done the VB script will write to this log you've now established. Set-up the log text file via the "Administer>Log Set-up" menu item, select the "Text File Log" tab and then enable the "Log print job information" checkbox. Click the "Set-up" button here to arrange the log file how you wish. Note that if you deselect all the logged items in the set-up, only the text produced by your VB script will be written to the text file log.

Note that Print job logging is an Automation edition feature or above. In older versions of BarTender the log set-up would be found under the "Tools" menu.
0
Avatar
Legacy Poster

Unfortunately this is not working as proposed by you.
Nothing is printed in de log file as a result of the Format.writetolog function.
Only the log messages are added to this log file when selected.
When all the files message are deselected nothing is added to the log file when printing a label.
0
Avatar
Ian Cummings
Modérateur

Please send a copy of the BarTender label format to the email address: eurotech@seagullscientific.com

I will take a look at this to see what might be going wrong and then respond by email and back in the forum for others to see.
0
Avatar
Ian Cummings
Modérateur

In the email you sent me I see in the screen shots and the label format that you are using the Professional edition of BarTender. Unfortunately for you this edition does not support the print job log feature. To use this feature you would need to upgrade to the Automation edition.
0
Avatar
Legacy Poster

Very clear.
Thank you anyway.

Veuillez vous connecter pour laisser un commentaire.