Set Fontscale With Vb
Hi
I have posted previously regarding this issue but ended up getting sidetracked onto something else. I am still having a problem using a vb script to adjust the font scale.
This is the function I have entered:
-
Take a look at this forum post: http://forums.seagullscientific.com/index.php?/topic/2415-cant-set-fontsize-in-vb-script-bug
Obviously your question refers to the FontScale property as opposed to the FontSize, but the general idea is the same.
0 -
Hi.
Thanks for your reply.
I have changed my script to the following:
If (Len(Field("PrintFile.Field 6")) <= 10) ThenFormat.Objects("Text 5").FontScale = 98ElseFormat.Objects("Text 5").FontScale = 85End IfThis is on Transforms, vbscripts, and selecting "OnProcessData" of the field itself... I get the following error message now "Object property is not supported. This property is only allowed when running document event scripts."Where am I meant to put this?ThanksNickySA0 -
Hello NickySA,
Object properties can only be modified from a document level script, accessible from the "File>BarTender Document Options..." dialog under the "VB Scripting" tab. Note that at least the Automation edition is required to use this VB script type.
Regards.
0
Please sign in to leave a comment.
Comments
3 comments