Visio C# Close() document

Started by RodrigoCampos, March 27, 2012, 06:35:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RodrigoCampos

Hi All,

I implemented a new button called "Close" and the "code behind" looks like this:

       public static void ForceCloseAll(Visio.Documents docs)
       {
           while (docs.Count > 0)
           {
               docs.Application.ActiveDocument.Close();
           }
       }

But I'm getting this error:

       "The operation cannot be performed while doing in-place editing".

Anyone knows why?

Thank you in advance,
Rodrigo Campos