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 28-04-2014, 09:41
AVP AVP is offline
Junior Member
 
Join Date: May 2009
Posts: 13
Default Bugs in automation CorelDraw X7 + VS2010

Interesting bugs in automation CorelDraw X7 + VS2010
First bug:
This code (vb.net) gives an error:
Code:
Dim cdrapp As New VGCore.Application

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click       
        Try
            cdrapp.ActiveShape.Outline.Justification = VGCore.cdrOutlineJustification.cdrOutlineJustificationOutside
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub
But this code (VBA) works fine:
Code:
Public Sub test()
  ActiveShape.Outline.Justification = cdrOutlineJustificationOutside
End Sub
Second bug:

This code (vb.net) gives an error:
Code:
Dim cdrapp As New VGCore.Application

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click       
        Try
            cdrApp.FrameWork.Automation.InvokeItem("13f1794d-bf6b-455a-969c-47f80bd6b912") 'select master shape for clones
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub
But this code (VBA) works fine:
Code:
Public Sub test()
 Application.FrameWork.Automation.InvokeItem ("13f1794d-bf6b-455a-969c-47f80bd6b912")'select master shape for clones
End Sub
Reply With Quote
  #2  
Old 05-05-2014, 02:40
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

Can you give more details? What errors do you get?
Reply With Quote
  #3  
Old 06-05-2014, 13:12
AVP AVP is offline
Junior Member
 
Join Date: May 2009
Posts: 13
Default

For Justification - Error:
"Attempt to read or write Protected Memory. This is often an indicating that other memory is corrupt"

For Automation.InvokeItem - Error:
"The stub received bad data. (Exception from HRESULT: 0x800706F7)"

Last edited by AVP; 06-05-2014 at 13:16.
Reply With Quote
  #4  
Old 28-02-2019, 10:53
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default Has anyone figured this out?

Has anyone figured this out? I am hitting the same issue. It seems to be the same in CorelDraw 2018 also.

Anyone have any ideas???
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create X5 Addin with VS2010 C# lebaron CorelDRAW/Corel DESIGNER VBA 2 28-11-2011 04:29
CorelDraw COM Automation "Undo" command bkurt General 2 06-12-2010 16:36
2 bugs wOxxOm General 0 28-05-2005 14:08
Some bugs Lev SecuriDesign 2 12-02-2004 06:17


All times are GMT -5. The time now is 12:04.


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