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 02-12-2011, 03:12
timespace
Guest
 
Posts: n/a
Question How to disable color profile setting for file exporting in VBA code?

When exporting shapes to a jpg file in X4, if the export color profile setting is enabled in the color manager, the .jpg file will be very large because it contains extra color data.

How to disable the setting through VBA code?
I cannot ask all users check this setting manually before using my tool.
Attached Images
 
Reply With Quote
  #2  
Old 02-12-2011, 08:43
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Color

You need to change UseColorProfile to False so code might look like:
Code:
Set Filter = d.ExportBitmap("C:\Temp\Doc.jpeg", cdrJPEG, cdrCurrentPage, cdrRGBColorImage, 0, 0, 72, 72, UseColorProfile:=False)
Best of luck,

-Shelby
Reply With Quote
  #3  
Old 02-12-2011, 10:56
timespace
Guest
 
Posts: n/a
Question

I've done some experiments, and confirmed that the "UseColorProfile:=False" has no effect on the result file.

It seems the color manager's setting has higher priority.
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
exporting registry entries to a *.reg file gorgo CorelDRAW/Corel DESIGNER VBA 14 05-05-2011 12:18
CDR12: TTF Font exporting - specify character code zlatev CorelDRAW/Corel DESIGNER VBA 0 03-12-2005 06:54
Light color border around image when exporting to bitmaps Alex FAQ 0 27-04-2005 13:33
color profile problem in Photo Paint 9 flip Corel Photo-Paint VBA 2 11-07-2003 04:55
Setting Outline Color AC CorelDRAW/Corel DESIGNER VBA 1 18-03-2003 19:33


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


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