🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20091

FillColor problem within Lotus Notes

#20091
From: Graeme Fidler
Date: Tue, 29 Oct 2002 15:51
23 lines
1588 bytes
I am using LotusNotes to automate InDesign. So far everything I have done has worked but I am having problems with FillColor. 

I have managed to change the font style, size, justification etc but when I use the following line to amend the colour : 

myTextbox.Paragraphs.Item(1).FillColor= mydocument.Colors.item("Cyan")		 

I get a "Type Mismatch" error message. 

I have also tried the following : 

Dim allcolors As Variant 
Set allcolors = mydocument.Colors 
Msgbox Cstr(allcolors(8).Name) 

The messagebox shows the name "Cyan" but when I try to place the same data in the fillcolor I get the Type Mismatch error again, for example : 

myTextbox.Paragraphs.Item(1).FillColor= allcolors(8)	 

I wonder if anyone can help me solve this. Please!? It's driving me nuts. 

Thanks in advance 

Graeme
Technical Details
Message-ID: <1de65e74.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newspump.sol.net!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.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,d167cc78c2a02f60,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-10-29 10:06:25 PST
From: "Graeme Fidler" <graeme@pierhouse.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newspump.sol.net!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: FillColor problem within Lotus Notes
Message-ID: <1de65e74.-1@WebX.la2eafNXanI>
Date: Tue, 29 Oct 2002 07:51:24 -0800
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit