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-10-2007, 11:40
DebG
Guest
 
Posts: n/a
Default Upgrading Coreldraw VBA from V12 to X3

I've been coding VBA for Coreldraw for a number of years, and am very happy to discover this forum.

I am in the process of testing my macros, developed in previous versions of Coreldraw (9-12), on Coreldraw X3.

Our office uses templates that contain pre-set information used by the macros. This data is stored in Document.Properties.

In Coreldraw 12, creating a new document from a .cdt file ("With Contents" checked) opens a new .cdr file containing the Document properties from the Template.

In Coreldraw X3, if I have just opened X3 and open a new document from a template, it works like V12. However if I close that .cdr file and open a second file from the same template, the new document has nothing in document properties. (Activedocument.Properties.Count = 0)

Does anyone know why this would happen? I'm not sure if it is an X3 bug, or if I need to change the way I store and access this data in X3.

My X3 is up-to-date with all the service patches.

Any suggestions would be much appreciated!!
Reply With Quote
  #2  
Old 28-10-2007, 12:41
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

There is always a bruteforce solution of creating your own template browser :-) however working with X3 cdts I don't encounter the problem and do you?

Last edited by wOxxOm; 28-10-2007 at 12:44.
Reply With Quote
  #3  
Old 30-10-2007, 09:04
DebG
Guest
 
Posts: n/a
Default Made some progress....

I have narrowed down the problem to the use of the Open event. I was picking up the document properties when the DocumentOpen event fired. In X3 they are not yet loaded at this point. Now that I know this I can work around the problem.
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
CorelDraw 10 DXF export relative coordinates - VBA solution? asb617 CorelDRAW/Corel DESIGNER VBA 2 01-04-2010 02:34
Where to begin with CorelDRAW and VBA shelbym CorelDRAW/Corel DESIGNER VBA 2 03-04-2007 09:15
CorelDRAW X3 VBA Documentation keytecstaff CorelDRAW/Corel DESIGNER VBA 1 21-09-2006 10:31
Accesing CorelDraw 10 VBA Object Model without running it dolmos CorelDRAW/Corel DESIGNER VBA 5 19-12-2003 07:52
CorelDraw 11 VBA DOM? sdickson CorelDRAW/Corel DESIGNER VBA 2 03-12-2002 15:05


All times are GMT -5. The time now is 16:02.


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