![]() |
#1
|
|||
|
|||
![]()
When trying to create a CorelDraw 12 document within a C# windows forms application, I receive the following error:
Error HRESULT E_FAIL has been returned from a call to a COM component. I've added the references to CorelDraw12 and VGCore. A code sample is listed below ... try { CorelDRAW.Application draw = new CorelDRAW.Application(); draw.Visible = true; CorelDRAW.Document doc = draw.CreateDocument(); CorelDRAW.Shape rect = doc.ActiveLayer.CreateRectangle2(0, 0, 2, 2, 0, 0, 0, 0); rect.Fill.UniformColor.RGBAssign(255, 0, 0); } catch (Exception ex) { MessageBox.Show(ex.Message); } I'm using Visual Studio 2008 Pro, CorelDraw 12 & Windows XP SP2. Any help would be greatly appreciated, Steve |
#2
|
|||
|
|||
![]()
The issue was machine specific.
Steve |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
forum fails in sending notification | s_federici | Web site suggestions | 2 | 08-11-2004 03:47 |