Sample implementation of the Undo method
void Undo(IFileDocument *pFileDocument)
{
VARIANT_BOOL bCanUndo;
pFileDocument->get_CanUndo(&bCanUndo);
if (bCanUndo == VARIANT_TRUE)
pFileDocument->Undo();
}
Sample implementation of the Undo method
public void Undo(IFileDocument fdoc)
{
if (fdoc.CanUndo)
fdoc.Undo();
}