Skip to main content

Search

Search

Set Fontscale With Vb

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator

    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
  • Avatar
    Legacy Poster

    Hi.

     

    Thanks for your reply.

     

    I have changed my script to the following:

     

    If (Len(Field("PrintFile.Field 6")) <= 10) Then
     
        Format.Objects("Text 5").FontScale = 98
     
    Else
     
       Format.Objects("Text 5").FontScale = 85
     
    End If 
     
    This 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?
     
    Thanks
    NickySA
    0
  • Avatar
    Fernando Ramos Miracle

    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.