Author Topic: Visio C# Close() document  (Read 4895 times)

0 Members and 1 Guest are viewing this topic.

RodrigoCampos

  • Newbie
  • *
  • Posts: 5
Visio C# Close() document
« on: March 27, 2012, 01:35:51 PM »
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