OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 21-08-2010, 11:37
Posts: n/a
Default [resolved]Could import CorelDraw X5 COM Type Library in Delphi 2010

I just want to control CorelDraw with Delphi, so I tried import the Type Library of it in Delphi 2010, the TLB.pas was created but there were too many compiling errors, for example,

property Filter: cdrAddinFilter read Get_Filter write Set_Filter;

the setter function was missing! there was only a getter function.

But if I add the COM library in VB.NET, it works fine there.

What's wrong with it?

Last edited by lohmac; 21-08-2010 at 13:31.
Reply With Quote
Old 21-08-2010, 13:07
Posts: n/a
Default [DCC Error] CorelDrawX5.dpr(14): E2018 Record, object or class type required

I changed the sequence when imported the libraries, then it threw out the error as above this time.

Any suggestions?
Reply With Quote
Old 21-08-2010, 13:30
Posts: n/a
Default Resolved

The problem lies in the duplicated object name in Forms.pas and in CorelDraw_TLB.pas, change application in the latter unit to _Application would work out.
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
C++ Builder import type lib of CorelDraw blotfib CorelDRAW/Corel DESIGNER VBA 9 19-11-2010 03:32
Multipage PDF import to CorelDRAW Jasmine Macros/Add-ons 2 11-12-2009 04:29
Import / Paste Excel into CorelDraw 12 JIMXAV General 3 11-05-2007 07:11
Oberon Type Library Tools Alex Other Oberon Commercial Products 4 21-04-2005 05:45
do anyone know how to use Delphi 7 to draw in coreldraw? lees CorelDRAW/Corel DESIGNER VBA 1 10-05-2004 09:43

All times are GMT -5. The time now is 01:33.

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