OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-01-2021, 14:04
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 158
Default how to fill a shape with spot color by name

how to fill a shape with spot color by name
e.g. I want to fill Pantone 117C by VBA
Reply With Quote
  #2  
Old 16-05-2021, 21:16
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default how to fill a shape with spot color by name

You can do this by the index like this:
Code:
ActiveSelection.Fill.UniformColor.PaletteAssign "PANTONEĀ® solid coated", 44
or you can do a StringAssign like this:
Code:
ActiveSelection.Fill.UniformColor.StringAssign "SPOT,PANTONEC,47,100,fc6ccd74-10a8-4152-8901-a51facb47785,~,PANTONE 117 C,2,CMYK255,USER,5,56,255,38,100,00000000-0000-0000-0000-000000000000,~,RGB255,USER,196,158,13,100,00000000-0000-0000-0000-000000000000,~,fc6ccd74-10a8-4152-8901-a51facb47785,PANTONE 117 C"
Happy coding,

-Shelby
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill a shape with Circles biok CorelDRAW/Corel DESIGNER VBA 13 05-03-2011 12:00
Spot color color.toString value changes between docs runflacruiser CorelDRAW/Corel DESIGNER VBA 3 12-11-2010 08:50
Spot color difference invloving X5 runflacruiser CorelDRAW/Corel DESIGNER VBA 3 06-05-2010 17:40
Creating an alert for custom spot color. FlashOverX General 8 26-04-2006 06:51
Spot Color Replacer click101 CorelDRAW CS 2 15-01-2003 09:06


All times are GMT -5. The time now is 20:20.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright Ā© 2011, Oberonplace.com