OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 11-04-2007, 14:00
Posts: n/a
Default CYMK equivalent to Pantone Colors

I am using CorelDRAW X3. I have a routine that goes through a document and lists the Pantone colors, but I would also like to list the CYMK and/or RGB equivalents. How do I access those in VBA?

Thanks, Judy
Reply With Quote
Old 11-04-2007, 16:15
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4

You make a copy of the color, then convert it to CMYK (or RGB) and then get the color components. After you are done, just dispose of the copy (which will be done automatically, so you don't have to do anything for this ):

Dim c As New Color
Dim cyan As Long
c.CopyAssign ActiveShape.Fill.UniformColor
cyan = c.CMYKCyan
Reply With Quote

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
Getting a list of all colors in a Document CORNMEN CorelDRAW/Corel DESIGNER VBA 5 15-11-2008 05:14
Minimizing the number of colors used in a document Alex FAQ 1 24-05-2005 10:46
Palette (or Colors array) property in VBA class in CDR12 zlatev CorelDRAW/Corel DESIGNER VBA 7 22-02-2005 11:28
Wish to Convert Named Colors to Shape Color D_Green CorelDRAW/Corel DESIGNER VBA 1 12-09-2004 11:08
ComboBox Pantone Population ddonnahoe CorelDRAW/Corel DESIGNER VBA 5 13-01-2004 09:44

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

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