🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16583

Automate color change

#16583
From: Marcia Silva
Date: Wed, 27 Aug 2003 04:07
17 lines
1295 bytes
I'm getting the color from a color pick from a asp page and passing to a VB component, but I get a error passing the ColorValue (Invalid Automation)
in this line:
 myColor.ColorValue = Array(strColorValue)

If strFontColor <> "" Then
    'define Colors
    Set myColors = myDocument.Colors
    '
    Set myColor = myColors.Add
    myColor.Space = idCMYKcolor
    myColor.ColorValue = Array(strColorValue)
    myColor.Name = strFontColor

'Assign the color to this style
    myCharStyle.FillColor = myColors.Item("orange")

End If
Technical Details
Message-ID: <2ccd1ac9.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ab46b31de23c5d0e,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-08-26 21:37:35 PST
From: "Marcia Silva" <msilvaon@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Automate color change
Message-ID: <2ccd1ac9.-1@webx.la2eafNXanI>
Date: Tue, 26 Aug 2003 21:07:53 -0700
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit