![]() |
#1
|
|||
|
|||
![]()
Hi ladies and gents,
I try to use the "Undo" command of several opened Draw documents. It seems there is a bug related to the "Undo" command if there are several opened documents, because the undo is always tied to the latest opened document. The following steps should clearify the above mentioned issue. Open Draw (12 or X3 or X4 or X5) and open 3 documents. Perform some drawing operations on each document. Afterwards switch the ActiveDocument through Com Automation (C#, C++, ....) corel.Documents[1].Activate(); corel.ActiveDocument.Undo(1); // the undo command won't undo the latest command on document 1. instead it will undo the document opened last. I hope somebody has experience in this field of CorelDraw automation Kind regards Lela |
#2
|
|||
|
|||
![]()
Hi Lela,
Just a question - why would you need to issue an 'undo' under automation? I guess it depends on the application. Anyhow, although Corel states it is multi-threaded - I have really never trusted that it truly is. Computers are cheap - I suggest setting up an asynchronous process on separate computers (if your volume is heavy) to pickup your request (ie. one at a time), process your document, and close it without saving and you should never have any multi-document issues. If IsObject(mCor) Then If lbDocOpen = True Then mCor.Dirty = False mCor.Close End If Set mCor = Nothing End If HTH, Craig. |
#3
|
||||
|
||||
![]() Quote:
-Shelby |
![]() |
Tags |
com automation, undo |
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 |
Move objects to selected layer (either "a" or "b") | 6fazer | CorelDRAW/Corel DESIGNER VBA | 3 | 07-03-2007 20:10 |
corelDRAW paragraph text mirror "bug" | hellraeser | General | 2 | 09-03-2006 00:17 |
4DR Alex:) turn on/off "Snap to objects" & "snap location marks" from VBA | wOxxOm | CorelDRAW/Corel DESIGNER VBA | 1 | 14-06-2005 13:12 |
using "importfromfile" command without file name d | olympiatr | CorelDRAW/Corel DESIGNER VBA | 3 | 14-08-2004 03:39 |
All CorelDraw settings are locked on "null" ???? | porteg | CorelDRAW/Corel DESIGNER VBA | 4 | 29-10-2003 20:17 |