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 01-04-2011, 06:47
seelenquell
Guest
 
Posts: n/a
Default bug in x5/vba with ColorConversionOptions?

hi there,

i just discovered a small bug probably.
Code:
dim file as string
file = "c:\test.cdr"
Dim openopt As New StructOpenOptions
Set openopt = CreateStructOpenOptions
openopt.ColorConversionOptions.ColorPolicy.WarnOnMismatchedProfiles = True
openopt.ColorConversionOptions.ColorPolicy.WarnOnMissingProfiles = True
Dim doc1 As Document
Set doc1 = OpenDocumentEx(file, openopt)
when starting this script, corel should open this file. if you haven´t saved any profile in this corel-file or the version is below x5 there should be a profile-dialogue (if you have selected this in the color-options) before the file is opened.
but there isn´t any dialogue. when i open this file with the standard-open-document-menupoint, the dialog is coming. through script it isn´t.

can anyone confirm this? i also tried the normal "opendocument" but there it´s the same.
Reply With Quote
  #2  
Old 06-04-2011, 23:31
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

Macros never show dialogs (in some cases, you can show a dialog by using special commands or options). This is by design. You can specify the profiles in code.
Reply With Quote
  #3  
Old 08-04-2011, 01:29
seelenquell
Guest
 
Posts: n/a
Default

mmh then i interpreted something wrong here:

Code:
ColorManagementPolicy.WarnOnMismatchedProfiles 
Property WarnOnMismatchedProfiles As Boolean 

Description 
Member of ColorManagementPolicy 

The WarnOnMismatchedProfiles property specifies whether to display a warning for a mismatch between color profiles.
when i open a corel-file per script, i want to select a profile when there is none (for example when opening a <X5-file)


update: just found a working dirty solution:
Code:
ShellExecute 0, vbNullString, file, vbNullString, vbNullString, 5
'file' stands for the filename with complete path

Last edited by seelenquell; 12-04-2011 at 06:10. Reason: solution found
Reply With Quote
Reply

Tags
colorconversionoptions, corel x5, opendocument, vba


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


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


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