OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > Corel PHOTO-PAINT > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-02-2006, 07:16
joexx
Guest
 
Posts: n/a
Default Supress Dialog on ActiveDocument.Save

Hi,

How can I supress all dialogs, when saving a jpg?
Assuming the active document is a jpg.
Code:
Application.ActiveDocument.Save
always shows the compression dialog box.
Reply With Quote
  #2  
Old 15-02-2006, 08:05
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

I would use SaveAs method for that and communicate directly with the JPEG filter to set all the settings like compression, smoothing, optimization, etc.

Something along these lines (didn't have time to check this myself, so some of the commands may not be 100% correct. Just to give you an idea)

Code:
Dim flt As ExportFilter
Set flt = ActiveDocument.SaveAs(ActiveDocument.FullFileName, cdrJPG)
flt.Compression = 10
flt.Smoothing = 5
flt.Finish
Reply With Quote
  #3  
Old 15-02-2006, 08:52
joexx
Guest
 
Posts: n/a
Default

Ah, now I see.
That helps. Thank you, Alex.
Reply With Quote
  #4  
Old 11-12-2007, 14:41
romanold
Guest
 
Posts: n/a
Default but anyway ...

question still stays opened. How to interact from within macro with JPEG Filter dialog box (for local topic) or with any built-in dialog box (in general)? At least how to simply press OK in it? (note, that passing KeyStroke or something like that is blocked while dialog is opened).
as for local topic from my beginner (well ... noob actually) knowledge i know there is event BeforeSave (or something like that) and i have a feeling that it could be responsible ....
Reply With Quote
  #5  
Old 12-12-2007, 10:25
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

only using a winapi SetTimer, then SendMessage.
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
HOW-TO call coreldraw12 find dialog from VBA code???? wOxxOm CorelDRAW/Corel DESIGNER VBA 4 02-03-2008 08:32
Defaults for print dialog daniello General 6 22-09-2005 14:43
Problem with Common Dialog in Corel VBA RobC CorelDRAW/Corel DESIGNER VBA 3 13-05-2005 14:43
format text dialog box implement graphicdesigner CorelDRAW/Corel DESIGNER VBA 5 22-12-2004 13:37
Missing font dialog on import click101 CorelDRAW/Corel DESIGNER VBA 2 28-04-2003 12:32


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


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