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 14-08-2003, 11:13
jwknight
Guest
 
Posts: n/a
Default dialog boxes

when importing a plt file a dialog box appears. Is there anyway to override this so that is doesn't appear or so that the ok button is pressed.
Reply With Quote
  #2  
Old 14-08-2003, 12:46
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,787
Blog Entries: 11
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 PLT Import

You can check the "Do Not Show Filter Dialog" on the import Dialog.

If you want to show the dialog in code here is the example from the help file:

Code:
The following example imports the file "C:\Example.jpg" and returns an ImportFilter object which is used to determine if the filter has a dialog. If the filter has a dialog, the dialog is displayed; otherwise, the default JPEG settings are applied. The Finish method is called to finish the import.


Sub Test()
	Dim d As Document
	Dim s As Shape
	Dim i As ImportFilter
	Set d = CreateDocument
	Set i = d.ActiveLayer.ImportEx("C:\Example.jpg", cdrJPEG)
	If i.HasDialog Then
		i.ShowDialog
		i.Finish
	Else
		i.Reset
		i.Finish
	End If
End Sub

' (c) 2002 Corel Corporation. All rights reserved.
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
Importing from dialog... ddonnahoe CorelDRAW/Corel DESIGNER VBA 0 25-01-2005 08:26
format text dialog box implement graphicdesigner CorelDRAW/Corel DESIGNER VBA 5 22-12-2004 13:37
Browse Dialog ddonnahoe CorelDRAW/Corel DESIGNER VBA 15 27-01-2004 11:51
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 13:24.


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