Change Font Name Follow

0
Avatar
Legacy Poster

i has one format i want to change the font name depend on another field

i wrote one vb script but it's not work 

can any one help me please

 

'Executes at the start of a print job.
 
' ReferenceField("Format.Type") 
 If (ReferenceField("Format.Type"))="Special offer A"  THEN
    Format.Objects("Text 5").FontName  = "GE-1"
End If

1 comments

0
Avatar
Shotaro Ito
Comment actions Permalink

To change font from VB Script, You need to have Automation Edition and BarTender 9.3 or later.

You can place the script in File>BarTender Document Options>VB Scripting tab>OnNewRecord>Edit..

 

It's same procedure as how to change text color from vb script

http://forums.seagullscientific.com/index.php?/topic/213-how-to-change-object-properties

Please sign in to leave a comment.