Savecopyas via API clears undo stack

Savecopyas via API clears undo stack

TA.Fehr
Advocate Advocate
303 Views
1 Reply
Message 1 of 2

Savecopyas via API clears undo stack

TA.Fehr
Advocate
Advocate

When I manually save a copy as, I can retain my undo history. But when I call the same command through the api

oDoc.SaveAs(SaveName, True)

It saves the copy, but deletes the undo history. Is there a way to not have this happen?

0 Likes
Accepted solutions (1)
304 Views
1 Reply
Reply (1)
Message 2 of 2

TA.Fehr
Advocate
Advocate
Accepted solution

Sorry, my mistake. There was another code calling some modifications to the saved file. These saves, although happening in the background were actually causing the active document's undo stack to clear.

0 Likes