OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 15-02-2006, 08:16
Posts: n/a
Default Supress Dialog on ActiveDocument.Save


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

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)

Dim flt As ExportFilter
Set flt = ActiveDocument.SaveAs(ActiveDocument.FullFileName, cdrJPG)
flt.Compression = 10
flt.Smoothing = 5
Reply With Quote
Old 15-02-2006, 09:52
Posts: n/a

Ah, now I see.
That helps. Thank you, Alex.
Reply With Quote
Old 11-12-2007, 15:41
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
Old 12-12-2007, 11:25
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
Join Date: Mar 2005
Posts: 836

only using a winapi SetTimer, then SendMessage.
Reply With Quote

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 09:32
Defaults for print dialog daniello General 6 22-09-2005 15:43
Problem with Common Dialog in Corel VBA RobC CorelDRAW/Corel DESIGNER VBA 3 13-05-2005 15:43
format text dialog box implement graphicdesigner CorelDRAW/Corel DESIGNER VBA 5 22-12-2004 14:37
Missing font dialog on import click101 CorelDRAW/Corel DESIGNER VBA 2 28-04-2003 13:32

All times are GMT -5. The time now is 20:54.

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