Type Mismatch when forcing Named Data Source reference with ReferenceSharedSubString Follow
We use Automation scripts to drive label generation. I am trying to set a font color using VBScript in a template based on a value provided in the data from our backend. The color is provided in the named data source "piece_meta_label_font_color." I am trying to change the color of the Text Objects "Metric Size" and "Standard Size." The data provided by the database and therefore contained by the Named Data Source is BtColor.Black. Based on the articles I have read, (Page 10 Here) and Here here is the script I have written.
Objects("Standard Size").TextColor = Eval(Format.NamedSubStrings("piece_meta_label_font_color").Value)
Objects("Metric Size").TextColor = Eval(Format.NamedSubStrings("piece_meta_label_font_color").Value)
The error I receive is: OnOpen (Line 1): Type mismatch: 'ReferenceSharedSubString'
Any help would be apprecaited.
★ BarTender Hero ★
Please sign in to leave a comment.