D
das_at_gehc
Hi all,
I'm seeing an issue that I hope someone can explain and help.
Basically, I'm trying to embed a visio application and mostly it seems to
work except when I try to do:
Document.Pages.Add()
after setting the DrawingControl.Src value.
The exception thrown is "Requested operation is presently disabled." on the
Add() call.
Extensive debugging investigation led me to discover that
Application.ActivePage gets obliterated after setting DrawingControl.Src.
// From the Visio Documentation:
// To save changes in a file,
// first use the Src property to load the file into the
control,
// and then set Src to an empty string ("").
drawingControl.Src = fileName; // THIS WIPES OUT THE
ACTIVEPAGE!!!!
Page apage = drawingControl.Document.Pages.Add(); //
exception thrown
Hopefully this is enough of clues to whet the curiosity of the experts out
there to show me the way to accomplish this correctly (or provide a
workaround?) -- if not, I will gladly followup with more.
Thanks in advance.
I'm seeing an issue that I hope someone can explain and help.
Basically, I'm trying to embed a visio application and mostly it seems to
work except when I try to do:
Document.Pages.Add()
after setting the DrawingControl.Src value.
The exception thrown is "Requested operation is presently disabled." on the
Add() call.
Extensive debugging investigation led me to discover that
Application.ActivePage gets obliterated after setting DrawingControl.Src.
// From the Visio Documentation:
// To save changes in a file,
// first use the Src property to load the file into the
control,
// and then set Src to an empty string ("").
drawingControl.Src = fileName; // THIS WIPES OUT THE
ACTIVEPAGE!!!!
Page apage = drawingControl.Document.Pages.Add(); //
exception thrown
Hopefully this is enough of clues to whet the curiosity of the experts out
there to show me the way to accomplish this correctly (or provide a
workaround?) -- if not, I will gladly followup with more.
Thanks in advance.