adding treeview to visio

D

David

i tried to run the TreeView sample from
C:\Program Files\Microsoft Office\Visio11\SDK\Samples\Treeview
but i did not succeed.
i followed the instructions in the "Readme Samples Summary.htm" and
therefore i installed .NET Framework 1.1 and then i reinstalled visio
(becasue they said i must intall .NET Framework 1.1 before installing
visio) and it still didn't work.

anyone knows what to do to make it work. i just want to run the
sample project WBSTreeView.sln to see if it can be useful for what i
need.

thanks
David
 
D

David

i tried to run the TreeView sample from
C:\Program Files\Microsoft Office\Visio11\SDK\Samples\Treeview
but i did not succeed.
i followed the instructions in the "Readme Samples Summary.htm" and
therefore i installed .NET Framework 1.1 and then i reinstalled visio
(becasue they said i must intall .NET Framework 1.1 before installing
visio) and it still didn't work.

anyone knows what to do to make it work.  i just want to run the
sample project WBSTreeView.sln to see if it can be useful for what i
need.

thanks
David

i wanted to attach here a print-screen of the errors i recieve. but i
don't see here how to send attachments. anyway, i have 54 errors.
i'll write here one of them. maybe it'll help you know what the
problem is:

Could not find type
'Microsoft.Samples.Visio.WbsTreeView.VBNet.Common'. Please make sure
that the assembly that contains this type is referenced. If this type
is a part of your development project, make sure that the project has
been successfully built.

all the rest of the errors are pretty much the same.

i don't really understand the error. i hope that anyone here can help
me fix it.

thanks
David
 
D

David

i wanted to attach here a print-screen of the errors i recieve.  but i
don't see here how to send attachments.  anyway, i have 54 errors.
i'll write here one of them. maybe it'll help you know what the
problem is:

Could not find type
'Microsoft.Samples.Visio.WbsTreeView.VBNet.Common'. Please make sure
that the assembly that contains this type is referenced.  If this type
is a part of your development project, make sure that the project has
been successfully built.

all the rest of the errors are pretty much the same.

i don't really understand the error.  i hope that anyone here can help
me fix it.

thanks
David

nobody knows????
 
A

AlEdlund

Had to go back and install the v2003sdk.
environment
vista ultimate x64
visual studio 2008 pro
office 2007
project 2007
visio 2007

converted the project (visual studio insists), cleaned up the library
pointers (references of course didn't match), built both projects (solution
and setup), no errors... installed-no errors
lot's of warnings

al

i wanted to attach here a print-screen of the errors i recieve. but i
don't see here how to send attachments. anyway, i have 54 errors.
i'll write here one of them. maybe it'll help you know what the
problem is:

Could not find type
'Microsoft.Samples.Visio.WbsTreeView.VBNet.Common'. Please make sure
that the assembly that contains this type is referenced. If this type
is a part of your development project, make sure that the project has
been successfully built.

all the rest of the errors are pretty much the same.

i don't really understand the error. i hope that anyone here can help
me fix it.

thanks
David

nobody knows????
 
D

David

Had to go back and install the v2003sdk.
environment
    vista ultimate x64
    visual studio 2008 pro
    office 2007
    project 2007
    visio 2007

converted the project (visual studio insists), cleaned up the library
pointers (references of course didn't match), built both projects (solution
and setup), no errors... installed-no errors
lot's of warnings

al









nobody knows????- Hide quoted text -

- Show quoted text -

hi Al
sorry i didn't understand what you said.
why were you talking about office 2007, project 2007, visio 2007? i
don't have those programs. i have only office 2003 + visio 2003.
and what do you mean "converted the project"? converted to what?
and "cleaned up the library pointers". how did you clean up?
sorry, most of what you said i just didn't understand.

tell me again, what exactly should i do to make the project work?
it's really important to me. i'm stuck with it for days :(.
can i send here attachments? i didn't see such an option. i want to
send a print-screen so you can see some of the errors.

i'll appreciate getting some help asap

thanks in advance
David
 
A

AlEdlund

If you're having a problem like this you need to know what products and
versions you're working with. Your original note didn't say anything about
how the system was put together or the software you were trying to use, just
the sdk.
The addin project calls libraries from office and visio (look in the
properties/references), since it works with ms project that also has to be
installed. When visual studio opens a solution package the first thing it
does is to check to see what version it was created with (since mine is a
newer version, it does an upgrade on the vs stuff that was included), it
also checks to see that the referenced libraries are the same (mine are
newer, so I had to update the references in the project also).
It sounds like you're having more problems with using visual studio than
with visio.
al


Had to go back and install the v2003sdk.
environment
vista ultimate x64
visual studio 2008 pro
office 2007
project 2007
visio 2007

converted the project (visual studio insists), cleaned up the library
pointers (references of course didn't match), built both projects
(solution
and setup), no errors... installed-no errors
lot's of warnings

al









nobody knows????- Hide quoted text -

- Show quoted text -

hi Al
sorry i didn't understand what you said.
why were you talking about office 2007, project 2007, visio 2007? i
don't have those programs. i have only office 2003 + visio 2003.
and what do you mean "converted the project"? converted to what?
and "cleaned up the library pointers". how did you clean up?
sorry, most of what you said i just didn't understand.

tell me again, what exactly should i do to make the project work?
it's really important to me. i'm stuck with it for days :(.
can i send here attachments? i didn't see such an option. i want to
send a print-screen so you can see some of the errors.

i'll appreciate getting some help asap

thanks in advance
David
 
D

David

If you're having a problem like this you need to know what products and
versions you're working with. Your original note didn't say anything about
how the system was put together or the software you were trying to use, just
the sdk.
The addin project calls libraries from office and visio (look in the
properties/references), since it works with ms project that also has to be
installed. When visual studio opens a solution package the first thing it
does is to check to see what version it was created with (since mine is a
newer version, it does an upgrade on the vs stuff that was included), it
also checks to see that the referenced libraries are the same (mine are
newer, so I had to update the references in the project also).
It sounds like you're having more problems with using visual studio than
with visio.
al








hi Al
sorry i didn't understand what you said.
why were you talking about office 2007, project 2007, visio 2007? i
don't have those programs.  i have only office 2003 + visio 2003.
and what do you mean "converted the project"? converted to what?
and "cleaned up the library pointers".  how did you clean up?
sorry, most of what you said i just didn't understand.

tell me again, what exactly should i do to make the project work?
it's really important to me.  i'm stuck with it for days :(.
can i send here attachments? i didn't see such an option.  i want to
send a print-screen so you can see some of the errors.

i'll appreciate getting some help asap

thanks in advance
David- Hide quoted text -

- Show quoted text -

you're probably right. i'm new in visual studio...
i'll try to be more specific now.
by the file "Readme Samples Summary.htm" i should use Visual
Studio .NET 2003 but i have Visual Studio .NET 2008.
by the file i also should have Microsoft .NET Framework 1.1 and i
actually have many versions of Microsoft .Net Framework (1.1, 2.0,
3.0, 3.5).
should i update the referenced libraries? how can i check it and how
can i update them if i need to?

thanks
David
 
A

AlEdlund

what versions of visio/office/project do you have installed? With vs2008
there are some other things you might have to install.
al
If you're having a problem like this you need to know what products and
versions you're working with. Your original note didn't say anything about
how the system was put together or the software you were trying to use,
just
the sdk.
The addin project calls libraries from office and visio (look in the
properties/references), since it works with ms project that also has to be
installed. When visual studio opens a solution package the first thing it
does is to check to see what version it was created with (since mine is a
newer version, it does an upgrade on the vs stuff that was included), it
also checks to see that the referenced libraries are the same (mine are
newer, so I had to update the references in the project also).
It sounds like you're having more problems with using visual studio than
with visio.
al








hi Al
sorry i didn't understand what you said.
why were you talking about office 2007, project 2007, visio 2007? i
don't have those programs. i have only office 2003 + visio 2003.
and what do you mean "converted the project"? converted to what?
and "cleaned up the library pointers". how did you clean up?
sorry, most of what you said i just didn't understand.

tell me again, what exactly should i do to make the project work?
it's really important to me. i'm stuck with it for days :(.
can i send here attachments? i didn't see such an option. i want to
send a print-screen so you can see some of the errors.

i'll appreciate getting some help asap

thanks in advance
David- Hide quoted text -

- Show quoted text -

you're probably right. i'm new in visual studio...
i'll try to be more specific now.
by the file "Readme Samples Summary.htm" i should use Visual
Studio .NET 2003 but i have Visual Studio .NET 2008.
by the file i also should have Microsoft .NET Framework 1.1 and i
actually have many versions of Microsoft .Net Framework (1.1, 2.0,
3.0, 3.5).
should i update the referenced libraries? how can i check it and how
can i update them if i need to?

thanks
David
 
D

David

what versions of visio/office/project do you have installed? With vs2008
there are some other things you might have to install.










you're probably right.  i'm new in visual studio...
i'll try to be more specific now.
by the file "Readme Samples Summary.htm" i should use Visual
Studio .NET 2003 but i have Visual Studio .NET 2008.
by the file i also should have Microsoft .NET Framework 1.1 and i
actually have many versions of Microsoft .Net Framework (1.1, 2.0,
3.0, 3.5).
should i update the referenced libraries? how can i check it and how
can i update them if i need to?

thanks
David- Hide quoted text -

- Show quoted text -

i have visio 2003, office 2003. what is project? i don't have it
installed. should i? i have the installation disk.
 
D

David

i have visio 2003, office 2003.  what is project? i don't have it
installed.  should i? i have the installation disk.- Hide quoted text -

- Show quoted text -

i've just installed "Project Professional 2003". now i have no more
errors in VS (instead of 54 errors before) and 103 warnings (like
before). but it still won't run. when i try to debug it i get the
following error:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project. Set the executable
project as the startup project."

i don't know what they want me to add to the solution.
and btw, why was "Project Proffessional 2003" necessary for running
the project in VS? i thought it was a completely different program
and that's why i didn't install it till now. i'm just curious, what
does this program do?
hope you can help me with the error i get.

thanks
David
 
A

AlEdlund

i have visio 2003, office 2003. what is project? i don't have it
installed. should i? i have the installation disk.- Hide quoted text -

- Show quoted text -

i've just installed "Project Professional 2003". now i have no more
errors in VS (instead of 54 errors before) and 103 warnings (like
before). but it still won't run. when i try to debug it i get the
following error:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project. Set the executable
project as the startup project."

i don't know what they want me to add to the solution.
and btw, why was "Project Proffessional 2003" necessary for running
the project in VS? i thought it was a completely different program
and that's why i didn't install it till now. i'm just curious, what
does this program do?
hope you can help me with the error i get.

thanks
David

*************************************************************************

To use this for anything other than the demo, you will need MS Project. The
sample reads a project
MPD file (a database created from a microsoft project plan) using OLEDB
(that's the project module
in the solution). The data originally came from MS Project and this solution
draws the tree diagram of it
in Visio.

This solution creates a visio addin (a dll). It first creates the dll (the
first project) and then the second part
of the solution creates the installation package (setup). That's why you
don't get to debug it. When you build
the setup file one of the options is whether you want to install it. Until
the first project builds error free, you don't
install it.

Right click on the first project and open the properties, select the
reference tab and you will probably see (at least) two modules with errors.
They are going to be COM modules (on my system it was office core and visio
lib). These have to be replaced (delete/add) with the libraries on your
system.

al
 
D

David

i've just installed "Project Professional 2003".  now i have no more
errors in VS (instead of 54 errors before) and 103 warnings (like
before).  but it still won't run.  when i try to debug it i get the
following error:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project.  Set the executable
project as the startup project."

i don't know what they want me to add to the solution.
and btw, why was "Project Proffessional 2003" necessary for running
the project in VS?  i thought it was a completely different program
and that's why i didn't install it till now.  i'm just curious, what
does this program do?
hope you can help me with the error i get.

thanks
David

*************************************************************************

To use this for anything other than the demo, you will need MS Project. The
sample reads a project
MPD file (a database created from a microsoft project plan) using OLEDB
(that's the project module
in the solution). The data originally came from MS Project and this solution
draws the tree diagram of it
in Visio.

This solution creates a visio addin (a dll). It first creates the dll (the
first project) and then the second part
of the solution creates the installation package (setup). That's why you
don't get to debug it. When you build
the setup file one of the options is whether you want to install it. Until
the first project builds error free, you don't
install it.

Right click on the first project and open the properties, select the
reference tab and you will probably see (at least) two modules with errors..
They are going to be COM modules (on my system it was office core and visio
lib). These have to be replaced (delete/add) with the libraries on your
system.

al- Hide quoted text -

- Show quoted text -

i think i made it worse :(.
i followed what you said and in the reference tab i didn't know how to
check if the modules have errors or not.
this is what i had in the reference tab:
Extensibility, .Net, 7.0.3300.0, copy local-false,path=...
Microsoft Office 11.0 object library, com, 2.3.0.0, false,...
Microsoft Visio 11.0 Type Library, COM, 4.11.0.0, false,
System, .NET, 2.0.0.0, false,
System.Data, .NET, 2.0.0.0, false
System.Drawing, .NET, 2.0.0.0, false
System.Windows.Forms, .NET, 2.0.0.0, false
System.XML, .NET, 2.0.0.0, false

i removed all of them and added them again with "Add...". but now i
have 11 errors. 8 errors of "Type 'DataTable' is not defined" and 3
errors of "Type 'DataRow' is not defined".
what should i do to make it work?
i'm sorry it's taking too long.
 
A

AlEdlund

i've just installed "Project Professional 2003". now i have no more
errors in VS (instead of 54 errors before) and 103 warnings (like
before). but it still won't run. when i try to debug it i get the
following error:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project. Set the executable
project as the startup project."

i don't know what they want me to add to the solution.
and btw, why was "Project Proffessional 2003" necessary for running
the project in VS? i thought it was a completely different program
and that's why i didn't install it till now. i'm just curious, what
does this program do?
hope you can help me with the error i get.

thanks
David

*************************************************************************

To use this for anything other than the demo, you will need MS Project.
The
sample reads a project
MPD file (a database created from a microsoft project plan) using OLEDB
(that's the project module
in the solution). The data originally came from MS Project and this
solution
draws the tree diagram of it
in Visio.

This solution creates a visio addin (a dll). It first creates the dll (the
first project) and then the second part
of the solution creates the installation package (setup). That's why you
don't get to debug it. When you build
the setup file one of the options is whether you want to install it. Until
the first project builds error free, you don't
install it.

Right click on the first project and open the properties, select the
reference tab and you will probably see (at least) two modules with
errors.
They are going to be COM modules (on my system it was office core and
visio
lib). These have to be replaced (delete/add) with the libraries on your
system.

al- Hide quoted text -

- Show quoted text -

i think i made it worse :(.
i followed what you said and in the reference tab i didn't know how to
check if the modules have errors or not.
this is what i had in the reference tab:
Extensibility, .Net, 7.0.3300.0, copy local-false,path=...
Microsoft Office 11.0 object library, com, 2.3.0.0, false,...
Microsoft Visio 11.0 Type Library, COM, 4.11.0.0, false,
System, .NET, 2.0.0.0, false,
System.Data, .NET, 2.0.0.0, false
System.Drawing, .NET, 2.0.0.0, false
System.Windows.Forms, .NET, 2.0.0.0, false
System.XML, .NET, 2.0.0.0, false

i removed all of them and added them again with "Add...". but now i
have 11 errors. 8 errors of "Type 'DataTable' is not defined" and 3
errors of "Type 'DataRow' is not defined".
what should i do to make it work?
i'm sorry it's taking too long.


****************************************************************

well eleven errors is better than fifty four errors. This should be a little
easier to fix since they
both point at issues with the system.data namespace. I don't see an ole
automation reference
in yours that I have in mine.

al
 
D

David

i think i made it worse :(.
i followed what you said and in the reference tab i didn't know how to
check if the modules have errors or not.
this is what i had in the reference tab:
Extensibility, .Net, 7.0.3300.0, copy local-false,path=...
Microsoft Office 11.0 object library, com, 2.3.0.0, false,...
Microsoft Visio 11.0 Type Library, COM, 4.11.0.0, false,
System, .NET, 2.0.0.0, false,
System.Data, .NET, 2.0.0.0, false
System.Drawing, .NET, 2.0.0.0, false
System.Windows.Forms, .NET, 2.0.0.0, false
System.XML, .NET, 2.0.0.0, false

i removed all of them and added them again with "Add...".  but now i
have 11 errors.  8 errors of "Type 'DataTable' is not defined" and 3
errors of "Type 'DataRow' is not defined".
what should i do to make it work?
i'm sorry it's taking too long.

****************************************************************

well eleven errors is better than fifty four errors. This should be a little
easier to fix since they
both point at issues with the system.data namespace. I don't see an ole
automation reference
in yours that I have in mine.

al- Hide quoted text -

- Show quoted text -

no it was 0 errors before. not 54. it was 54 errors before i
installed Project Proffesional. after the installation it was 0
errors. but i still couldn't debug it and i wrote the error message i
got. here it is again:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project. Set the executable
project as the startup project."

it became 11 errors after i removed the references and added them
again.
anyway, i've just removed the sdk and installed it again. now it's
back to 0 errors. but i get the former error message again when i try
to run it. the reference tab looks exactly like i wrote before. so
please tell me how can i check which modules has errors? i don't see
any sign for errors in the reference tab so i don't know what i should
replace there.
 
A

AlEdlund

i think i made it worse :(.
i followed what you said and in the reference tab i didn't know how to
check if the modules have errors or not.
this is what i had in the reference tab:
Extensibility, .Net, 7.0.3300.0, copy local-false,path=...
Microsoft Office 11.0 object library, com, 2.3.0.0, false,...
Microsoft Visio 11.0 Type Library, COM, 4.11.0.0, false,
System, .NET, 2.0.0.0, false,
System.Data, .NET, 2.0.0.0, false
System.Drawing, .NET, 2.0.0.0, false
System.Windows.Forms, .NET, 2.0.0.0, false
System.XML, .NET, 2.0.0.0, false

i removed all of them and added them again with "Add...". but now i
have 11 errors. 8 errors of "Type 'DataTable' is not defined" and 3
errors of "Type 'DataRow' is not defined".
what should i do to make it work?
i'm sorry it's taking too long.

****************************************************************

well eleven errors is better than fifty four errors. This should be a
little
easier to fix since they
both point at issues with the system.data namespace. I don't see an ole
automation reference
in yours that I have in mine.

al- Hide quoted text -

- Show quoted text -

no it was 0 errors before. not 54. it was 54 errors before i
installed Project Proffesional. after the installation it was 0
errors. but i still couldn't debug it and i wrote the error message i
got. here it is again:

"A project with an Output Type of Class Library cannot be started
directly.
In order to build this project, add an executable project to this
solution which references the library project. Set the executable
project as the startup project."

it became 11 errors after i removed the references and added them
again.
anyway, i've just removed the sdk and installed it again. now it's
back to 0 errors. but i get the former error message again when i try
to run it. the reference tab looks exactly like i wrote before. so
please tell me how can i check which modules has errors? i don't see
any sign for errors in the reference tab so i don't know what i should
replace there.

**********************************************************

If ""A project with an Output Type of Class Library cannot be started
directly." is what you describe as an error, it is not an error. This sample
does not create something that you can run directly. It creates an addin
which
is run from inside of Visio. After you do a build of the first project,
build the
setup project (the one underneath) and install it.



al
 
D

David Parker

You need to have Visio as the Start External Program for Debug
(BTW I hate scrolling down to the bottom of postings to get the latest)
 
D

David

me too, I was accomodating David.
al







...

read more »- Hide quoted text -

- Show quoted text -

thank you both!!! it finally works.
now i can see the treeview sample.

but it's completely different from the treeview i'm suppossed to build
for visio.
in the treeview sample every time you move "Task" (and only "Task") to
the frame the treeview is updated. but i need it to happen every time
i move every drawing. not only task.
the problem is that as i can see from the code, building the tree is
TaskDrawing method. meaning that in order to do what i want i need to
add the method to each drawing class i want to add. but as far as i
know the classes of the known drawings (cirlcle, triangle, etc) are
not provided. so anyone has idea how to make it work?

thanks
David

btw i also don't like scrolling down to the bottom message. what can
i do? create a new topic?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top