OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 01-04-2011, 07:47
Posts: n/a
Default bug in x5/vba with ColorConversionOptions?

hi there,

i just discovered a small bug probably.
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
Old 07-04-2011, 00:31
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4

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
Old 08-04-2011, 02:29
Posts: n/a

mmh then i interpreted something wrong here:

Property WarnOnMismatchedProfiles As Boolean 

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:
ShellExecute 0, vbNullString, file, vbNullString, vbNullString, 5
'file' stands for the filename with complete path

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

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 13:29.

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