connecting users of the CorelDRAW family of products
We take every threat seriously. CorelDRAW.com has not been affected by the Heartbleed security bug.

API Tool

rated by 0 users
This post has 2 Replies | 2 Followers

Share  
Page 1 of 1 (3 items) | RSS

Not Ranked
Downers Grove, IL
Paul Cervelli Posted: Wed, Mar 9 2011 8:51

I am not sure if this is the correct location for this question, but I need to start somewhere.

Does CorelDraw have an API which will allow me to connect a website & database form to corel document and generate out a .jpg or .png file for which I can post online as a virtual proof automatically?

We have a home grown preview tool already on our site but we would like to tie the personalization into the actual coreldraw files for accurate representations of the finished product.

 

Thanks,
Paul Cervelli
Creative Manager, GiftsForYouNow.com

Top 50 Contributor
Ottawa, Canada
Male
CorelEmployee

If your site is run on a windows server, you could hook into CorelDRAW's object model and have it output jpgs or pngs.  There are several ways to do this. For example, you could write a command line c# app (or another language of your choice that can import Draw's OM).  The command line app would use the command line arguments and ask draw to generate the images.

There's a few things to be aware of:

1. AFAIK, Draw isn't tested to run in a server environment, and you risk taking down your server.  You might want to restart Draw every once in a while, that may help if there are any memory leaks (we try our best to patch these, but occasionally we miss some).

2. Licensing, I really don't know how this works with this type of use of Draw, you may want to contact Corel and ask about this.

Hendrik

Top 10 Contributor
Melbourne
Male

Hi Hendrik,

I know this is not on topic with this thread, but since you are here.....

Do you know if we can change the order of Master Layers using VBA, or in particular, move a layer below the Master Layers with VBA? We can move a Master Layer below normal layers, but I can't find a way of moving a Master Layer below other Master Layers. Any tips on this would be most appreciated.

Best regards,
Brian.

Brian Melbourne

Page 1 of 1 (3 items) | RSS
© 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 / User Guidelines.