J
Jayashri Yadav
I have embedded a Visio drawing control in a user control and using that in a
WPF Application. The application has three menus. One of these menus is
supposed to show a visio drawing in the visio drawing control. When I load
the drawing file into the visio control, I check to see whether the active
page is a foreground page and if not I get the first foreground page
available from the document and set it as the active page.
I am facing two problems in this case.
1. If dispose off the Visio control when a different menu is selected, then
the application hangs if I select the other menus. It may hang the first time
I select another menu or after a few selections. But it hangs always.
2. If I do not dispose off the Visio control, then the second time I select
the menu to display the visio document, it does not selct the foreground
page.(Initially the document's activepage when it was saved was the
background page).
Has anyone faced this problem? Is there any solution for it?
WPF Application. The application has three menus. One of these menus is
supposed to show a visio drawing in the visio drawing control. When I load
the drawing file into the visio control, I check to see whether the active
page is a foreground page and if not I get the first foreground page
available from the document and set it as the active page.
I am facing two problems in this case.
1. If dispose off the Visio control when a different menu is selected, then
the application hangs if I select the other menus. It may hang the first time
I select another menu or after a few selections. But it hangs always.
2. If I do not dispose off the Visio control, then the second time I select
the menu to display the visio document, it does not selct the foreground
page.(Initially the document's activepage when it was saved was the
background page).
Has anyone faced this problem? Is there any solution for it?