G
Gerard Braad
I am busy with a school assignment and i have a small problem with
embedding Visio. At the moment i have my application working, but i have
some minor errors i would like to solve.
i have a visio drawingcontrol in my application which i programmed in
c#. when i trigger an action with the buttons in my application it drops
a shape (based on the mastername) from a stencil onto my document. but
this document is shown in portrait. i tried opening the document with a
landscape orientation using drawingControl.Src = "blah.vsd", this works,
BUT i cant use my stencil using OpenEx. when i use only OpenEx (which i
currently use from my stencil) i can't change the orientation of my page.
i cant seem to control the commandbar within the drawingcontrol. it says
visioApp.CommandBars is a property and not a method. In which way can I
control this property since assigning it, it fails since it is read-only.
and another problem. i want to cluster my information based on groups
which flow from left to right (horizontal). I know you can change it
somehow with the Layout-Routing, but how??? i also noticed Visio can use
clustering of information as a crossfunctional band, i rather want to
use such a feature as a person-swimminglane, is that possible in a
simple way?
when my stencil doesnt exist when i open my application, it fails with:
An exception occurred.
at Microsoft.Office.Interop.Visio.WindowClass.set_ShowPageTabs(Boolean
pbShow)
i catch the COMException and try to kill any running thread, but this
error still persists. how could i solve it??? i tried:
drawingControl.Dispose();
visioApp.Quit();
i would really appreciate any help.
embedding Visio. At the moment i have my application working, but i have
some minor errors i would like to solve.
i have a visio drawingcontrol in my application which i programmed in
c#. when i trigger an action with the buttons in my application it drops
a shape (based on the mastername) from a stencil onto my document. but
this document is shown in portrait. i tried opening the document with a
landscape orientation using drawingControl.Src = "blah.vsd", this works,
BUT i cant use my stencil using OpenEx. when i use only OpenEx (which i
currently use from my stencil) i can't change the orientation of my page.
i cant seem to control the commandbar within the drawingcontrol. it says
visioApp.CommandBars is a property and not a method. In which way can I
control this property since assigning it, it fails since it is read-only.
and another problem. i want to cluster my information based on groups
which flow from left to right (horizontal). I know you can change it
somehow with the Layout-Routing, but how??? i also noticed Visio can use
clustering of information as a crossfunctional band, i rather want to
use such a feature as a person-swimminglane, is that possible in a
simple way?
when my stencil doesnt exist when i open my application, it fails with:
An exception occurred.
at Microsoft.Office.Interop.Visio.WindowClass.set_ShowPageTabs(Boolean
pbShow)
i catch the COMException and try to kill any running thread, but this
error still persists. how could i solve it??? i tried:
drawingControl.Dispose();
visioApp.Quit();
i would really appreciate any help.