News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

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

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 138 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1045KB.
Tokens: post-login.
Cache hits: 13: 0.00116s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]