1 Reply Latest reply on Mar 13, 2013 2:10 PM by kc2scy

    Fillcolor

    kc2scy

      Hello,

      I'm having a issus assigning  a swatch to a rectangle.

      what I need is the have the background color set to paper.

       

      so i have tried:

       

      rec.fillColor = app.swatches.ItemByName("Paper");

      rec.fillColor = app.swatches.Item(9); (I loop through the swatches to get index);

      rec.fillColor =  "Paper"

       

       

      what I getting is a error saying that :

       

      Invalid value for set properity 'fillColor' Expected Swatch or string but received Swatch

      or

      Invalid value for set properity 'fillColor' Expected Swatch or string but received Color

       

      I have no idea whats going on here can anyone help?

       

      I using InDesign CS5 and extension builder 2.0