in

connecting users of the CorelDRAW family of products

CorelDraw X4 plugin using C#.net

Last post 08-25-2008 14:44 by Hendrik Wagenaar. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-23-2008 5:56

    CorelDraw X4 plugin using C#.net

     I am new to CorelDraw product and I am wondering is it possible to write CorelDraw X4 plugin using C#.net 2005. although I found some articles on using VB 6.0 and c++ but could not find any help on C#. any advice regarding this would be of great help. 

  • 08-23-2008 15:24 In reply to

    Re: CorelDraw X4 plugin using C#.net

     go to oberonplace forums.

    http://forum.oberonplace.com/index.php

    Regards

    Michael Cervantes
    MC Design Studio
  • 08-25-2008 14:44 In reply to

    Re: CorelDraw X4 plugin using C#.net

    Hi Kamalb,

    As Michael suggested, OberonPlace is a good place to start looking.  In addition, yes, you can create a c# application which interfaces with Draw's object model.  I did it a while ago, but if memory serves, you need to add a reference to "Corel - CorelDRAW 14.0 Library" and "Corel - Vector Graphics Core 14.0 Type Library" found under the COM tab.

    After adding the references, the following code starts Draw, creates a document and adds an ellipse:

    namespace LaunchDraw
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }

            private void Form1_Load(object sender, EventArgs e)
            {

            }

            private void button1_Click(object sender, EventArgs e)
            {
                CorelDRAW.Application app = new CorelDRAW.Application();
                app.Visible = true;
                app.CreateDocument();
                app.ActiveLayer.CreateEllipse(0, 0, 10, 10, 90, 90, false);
            }
        }
    }

    Regards,
    Hendrik

Page 1 of 1 (3 items)
© 2008 Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions.