[HOW] Import Undo
Posted: Mon Jul 11, 2011 7:25 am
Just tried to implement undo for OfficeConverters file import.
I want to import several .doc files and create undo point after each import but this seems not working:
After this code I'm getting .doc file imported and undo button enabled but pressing it does nothing just disabling
Also is there a way to import file from the cursor position?
I want to import several .doc files and create undo point after each import but this seems not working:
Code: Select all
RichViewEdit1.TopLevelEditor.BeginUndoGroup(rvutInsert);
RichViewEdit1.TopLevelEditor.SetUndoGroupMode(True);
try
r:=RVOfficeConverter1.ImportRV(OpenDialog1.FileName,RichViewEdit1,OpenDialog1.FilterIndex);
finally
RichViewEdit1.TopLevelEditor.SetUndoGroupMode(False);
end;
Also is there a way to import file from the cursor position?