Quantcast
Channel: Visio General Questions and Answers for IT Professionals forum
Viewing all articles
Browse latest Browse all 2333

Object name not found error after upgrading to Visio 2013

$
0
0

Hello,

I have a C# application which uses the Visio drawing control. I have been working on making it compatible with Visio 2013. I get an error using Visio 2013 which I did not get using Visio 2010. The error is a COMexception:

Object name not found.

That is all the error says. The code which causes it to occur is as follows:

Document document = axDrawingControl1.Document;
document.Pages["page1"].Drop(document.Masters["Dynamic Connector"], 0, 0);

It does not seem to matter whether I use Dynamic Connector or Rectangle or any other shape, the error still occurs.

Here's the weird part: I tried out this code in a simple app with a Visio drawing control to see if I could figure out how to make it go away, and the error was still occurring for a little while, and then the code magically started working without me making any changes to it. Unfortunately, it didn't start magically working in the original application so I'm still trying to figure out what is causing it.

Thanks for your help!


Viewing all articles
Browse latest Browse all 2333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>