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 22-04-2004, 19:16
Gerard Hermans
Guest
 
Posts: n/a
Default COM interop

Hello,

I am using COM interop for CorelDRAW automation. I.e. instead of VBA I use C# and all goes quite well, except for the following stubborn problem:

Each time I use Export or SaveAs options like: StructExportOptions (StructExportOptionsClass) or StructSaveAsOptions (StructSaveAsOptionsClass) I get the InvalidCastException, QueryInterface failed (sometimes: not supported).

I wonder if anybody could give me a clue what is going wrong here?

Cheers.
Reply With Quote
  #2  
Old 23-04-2004, 00:09
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: COM interop

Gerard,

How do you create those objects? Do you use new to create an instance of the object or do you call Application.CreateStructSaveAsOptions, for example?

Also, what version of CorelDRAW do you use?
Reply With Quote
  #3  
Old 23-04-2004, 13:04
Gerard Hermans
Guest
 
Posts: n/a
Default

I used CorelDRAW vs. 11.

However, I installed SP1 and SP2 and to my surprise, the problem does not occur any more!
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


All times are GMT -5. The time now is 03:47.


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