"Unspecified Error" placing DrawingControl on a form

VISIO

    Sponsored Links

    Next

  • 1. Visio 2003 - Space Plans, Removing Imported Data, Breaking links
    I'm slowly coming to a solution on creating an office floor plan, and populating the drawing with icons representing computer equipment from a SQL database. The problem I have now, is once I Enable Space Plans, and Import Data there seems to be no way to remove the "link" that is created. For example, I run the Import Data wizard, and I decide to import equipment from a table containing Printer. Using the wizard I assign a shape to be used, and voila the drawing is populated properly with all the printers. Now if I choose to Refresh the data, new printers are added as the database is updated, and I can remove items. The problem is if I decide that I no longer want printers in my drawing, there is no way to get rid of them. Every time I do a Refresh it just adds them back. Does anyone know how to tell Visio to stop Importing a particular item type? These "links" must be stored somewhere, but I can't find them to remove them. Thanks, Troy.
  • 2. Parent-Child Relationship Connector
    I'm trying to diagram a database which contains a table that's used to generate a tree (the primary key is, amazingly enough, NodeID). Intuitively, this should be simple to do: use the Relationship connector to connect the table to itself, thereby creating in the table a "ParentNodeID" foreign key column. However, I can't get that to work. I'm sure I'm not the first person who ever needed to do this with Visio (probably not in the first 10,000), but I just can't find anything that gives a clue on how to proceed. Anyone willing to let me in on the secret? TIA, Jeff
  • 3. How do I find definitions for specific shapes in Visio?
    I'm using Visio 2003, Conceptual Web Site Shapes. I can't find a way to get definitions for specific shapes; for example, Group, Page Group, Page Element, Page Jump, Main Object, and so on.
  • 4. please help...error with Visio
    I have been working on a very large network diagram that is over 30mb in size. I had been using Visio 2000 and decided to upgrade to 2003. Big mistake. The first time I opened the 2000 drawing with 2003 it seemed to work fine, when I saved it I chose to save in "2003" format. Next time I opened it I can't click on anything. I get an error "An error (1415) has occured during the action Open Object. Visio is unable to edit the Visio object." I did some searching and quickly found this was an Microsoft issue (big surprise). They said open it with the earlier version of Visio, save it as a .vsd file, then reopen it within 2003. Well, how am I suppose to open a 2003 file with Visio 2000? So I saved the document as a 2002 file, installed Visio 2000 on another machine, opened the 2002 format file, saved it as a .vsd file. Opened that with 2003, same error. I have tried saving the file as a 2002 file, I have even installed Visio 2002 on another machine and nothing is working. I'm very frustrated with MS and wonder why I upgraded at all. This is a huge drawing and recreating it is just not an option. Right now I want to grab someone at Microsoft by the throat. Can anyone offer any other ideas of how I can get it so I can click on the objects again?
  • 5. Network discovery
    Can anyone recommend a network discovery plug-in for Visio 2003? Thanks in advance

"Unspecified Error" placing DrawingControl on a form

Postby Vic Spainhower » Sat, 12 Feb 2005 09:27:53 GMT

Hello,

I'm re-posting this message in hopes of getting a reply. I have a 30-day 
Visio Evaluation kit which now only has about 2 weeks left. I'm creating a 
VB6 app and using the DrawingControl. However, as soon as I place the 
control on the form I get "Unspecified Error" and I'm unable to add the 
control to the form. I've uninstalled/Re-installed which did not help.

Any ideas?

Vic 



Re: "Unspecified Error" placing DrawingControl on a form

Postby Chris Roth [ Visio MVP ] » Tue, 08 Mar 2005 07:30:27 GMT

Try placing the control on the form via code.

I've had many problems with the visio control disappearing from the (VS.NET) 
designer after weeks of coding. You then have to go in and re-add the 
control, wondering all the time which code you've broken.

So what I did was write a wrapper class that adds the visio control to a 
Panel control at startup. It's a strategy primarily aimed at .NET, but it 
might work for your VB6 problems too.

-- 

Hope this helps,

Chris Roth
Visio MVP









Similar Threads:

1.Unspecified Error

Hi all,

I am using Visio 2007 in my application using VB.NET. Applications run
normally on any machine which has licensed version of Visio 2007 but
if I run the same application on machine which has Trial version of
Visio 2007 Visio control throws "Unspecified Error".

I even tried to add control through code but it gives the same error.

Is there any way to check either installed Visio Version is Trial or
not?

Thanks

Asif

2.Visio Control throws "Unspecified Error" if installed Visio version is Trial Version

Hi all,

I am using Visio 2007 in my application using VB.NET. Applications
run
normally on any machine which has licensed version of Visio 2007 but
if I run the same application on machine which has Trial version of
Visio 2007 Visio control throws "Unspecified Error".

I even tried to add control through code but it gives the same error.

Is there any way to check either installed Visio Version is Trial or
not or some other workaround to solve this problem?

Thanks

Asif

3."Unspecified error" Visio 2007 PRO - Trial

Hello All,

There is a thread reporting a similar problem, but for some reason I
can only reply to the author and not to the group, so I decided to
open a new thread.
Anyway, here is the problem:
We did the development using Visio 2007 STD, then decided to test our
program on Visio 2007 PRO. We downloaded the trial version and
discovered that the drawing control cannot
be instantiated. IClassFactory2:: CreateInstance returns E_FAIL. At
the same time, a popup message comes up "An unspecified error has
occured". The message is not helpful at all. We figured out that we
needed to activate the trial version in order to be able to
instantiate the drawing control, but we would like to be able to
display a more helpful error message, just in case some user gets into
the same situation.
We experimented with RequestLicKey and GetLicInfo, which were both
successful and did not give a clue that CreateInstance would fail.
CreateInstanceLic fails in the same fashion.

Thanks,
Sorina

4.Visio Control throws "Unspecified Error" if installed Visio versio

There was a recent (within the last month or so) request that showed up 
regarding working with trial code. The failure pretty definitely fired off a 
licensing error via .net. I'd start by putting in an error handler to capture 
the detailed/parent error and then work from there.
al


"Asif" wrote:

> Hi all,
> 
> I am using Visio 2007 in my application using VB.NET. Applications
> run
> normally on any machine which has licensed version of Visio 2007 but
> if I run the same application on machine which has Trial version of
> Visio 2007 Visio control throws "Unspecified Error".
> 
> I even tried to add control through code but it gives the same error.
> 
> Is there any way to check either installed Visio Version is Trial or
> not or some other workaround to solve this problem?
> 
> Thanks
> 
> Asif
> 

5.Unspecified Error

Hi all,

I am using Visio 2007 in my application using VB.NET. Applications run
normally on any machine which has licensed version of Visio 2007 but
if I run the same application on machine which has Trial version of
Visio 2007 Visio control throws "Unspecified Error".

I even tried to add control through code but it gives the same error.

Is there any way to check either installed Visio Version is Trial or
not?

Thanks

Asif



Return to VISIO

 

Who is online

Users browsing this forum: No registered users and 13 guest