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 28-06-2012, 09:14
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default Documents Primary Color Mode

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.
Reply With Quote
  #2  
Old 29-06-2012, 07:46
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

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.
Reply With Quote
  #3  
Old 29-06-2012, 11:03
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

My code works with X3, X4, X5

Thanks.
Reply With Quote
  #4  
Old 02-07-2012, 15:47
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

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
Or you can change the blending color model after you create a document:

Code:
Sub Test2()
    Dim doc As Document
    
    Set doc = CreateDocument()
    doc.ColorContext.BlendingColorModel = clrColorModelCMYK
End Sub
Reply With Quote
  #5  
Old 05-07-2012, 11:24
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

Thank you!
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
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


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


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