![]() |
#1
|
|||
|
|||
![]()
I have created a little windows vb.net app that creates a document in CorelDraw and saves it. Depending on the computer some users have set the Default Color Management settings --> Primary Color Mode to RGB and some have it set to CMYK. My question IN script either vb or vba how do I set the new documents Primary Color Mode to RGB or CMYK regardless of the default CorelDraw app settings. I need them all to be the same settings across different computers.
Thanks in-advance. |
#2
|
||||
|
||||
![]()
My first question would be, what version of draw are your users using?
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#3
|
|||
|
|||
![]()
My code works with X3, X4, X5
Thanks. |
#4
|
||||
|
||||
![]()
You can use something like this:
Code:
Sub Test() Dim opt As StructCreateOptions Dim doc As Document Set opt = CreateStructCreateOptions opt.ColorContext = CreateColorContext2("sRGB IEC61966-2.1,U.S. Web Coated (SWOP) v2,Dot Gain 20%", BlendingColorModel:=clrColorModelCMYK) Set doc = CreateDocumentEx(opt) End Sub Code:
Sub Test2() Dim doc As Document Set doc = CreateDocument() doc.ColorContext.BlendingColorModel = clrColorModelCMYK End Sub |
#5
|
|||
|
|||
![]()
Thank you!
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Same Macro to all documents | Manuel | CorelDRAW/Corel DESIGNER VBA | 5 | 10-05-2007 15:30 |
Replacing bitmap color mode | xenio | CorelDRAW/Corel DESIGNER VBA | 2 | 29-04-2007 04:12 |
How change Color mode used for effects with VBA? | igor___ | CorelDRAW/Corel DESIGNER VBA | 6 | 22-11-2006 01:44 |
Bitmap.Mode and .NET | aguzev | CorelDRAW/Corel DESIGNER VBA | 3 | 18-03-2004 00:03 |
Color mode of bitmap | pmeier | CorelDRAW/Corel DESIGNER VBA | 2 | 26-03-2003 00:56 |