A
Asif
Hi all,
I am using Visio 2007 activeX control in our application using VB.net.
I am using Visio Application Class DoCmd Command to open different
Visio Dialog Forms like Text, Line Fill, and Spelling etc.
There are two issues in using DoCmd Command:
1- Once I click Cancel button of any Dialog Form (Text, Line Fill etc)
System.Runtime.InteropServices.COMException is thrown with the
following details.
ex.Message: "Cancel."
ex.TargetSite
{System.Reflection.RuntimeMethodInfo}
[System.Reflection.RuntimeMethodInfo]:
{System.Reflection.RuntimeMethodInfo}
Attributes: 454
CallingConvention: 33
DeclaringType: {System.RuntimeType}
IsAbstract: False
IsAssembly: False
IsConstructor: False
IsFamily: False
IsFamilyAndAssembly: False
IsFamilyOrAssembly: False
IsFinal: False
IsHideBySig: True
IsPrivate: False
IsPublic: True
IsSpecialName: False
IsStatic: False
IsVirtual: True
MemberType: Method
MethodHandle: {System.RuntimeMethodHandle}
Name: "DoCmd"
ReflectedType: {System.RuntimeType}
2- If I try to open Format Style Dialog Form (VisioApp.DoCmd
(VisUICmds.visCmdFormatStyle)
System.Runtime.InteropServices.COMException is also thrown but with a
little bit different information
ex.Message:"Requested operation is presently disabled."
ex.TargetSite
{System.Reflection.RuntimeMethodInfo}
[System.Reflection.RuntimeMethodInfo]:
{System.Reflection.RuntimeMethodInfo}
Attributes: 454
CallingConvention: 33
DeclaringType: {System.RuntimeType}
IsAbstract: False
IsAssembly: False
IsConstructor: False
IsFamily: False
IsFamilyAndAssembly: False
IsFamilyOrAssembly: False
IsFinal: False
IsHideBySig: True
IsPrivate: False
IsPublic: True
IsSpecialName: False
IsStatic: False
IsVirtual: True
MemberType: Method
MethodHandle: {System.RuntimeMethodHandle}
Name: "DoCmd"
ReflectedType: {System.RuntimeType}
Can anyone tell me about why it is happening and any workaround for
it?
Thanks
Asif
I am using Visio 2007 activeX control in our application using VB.net.
I am using Visio Application Class DoCmd Command to open different
Visio Dialog Forms like Text, Line Fill, and Spelling etc.
There are two issues in using DoCmd Command:
1- Once I click Cancel button of any Dialog Form (Text, Line Fill etc)
System.Runtime.InteropServices.COMException is thrown with the
following details.
ex.Message: "Cancel."
ex.TargetSite
{System.Reflection.RuntimeMethodInfo}
[System.Reflection.RuntimeMethodInfo]:
{System.Reflection.RuntimeMethodInfo}
Attributes: 454
CallingConvention: 33
DeclaringType: {System.RuntimeType}
IsAbstract: False
IsAssembly: False
IsConstructor: False
IsFamily: False
IsFamilyAndAssembly: False
IsFamilyOrAssembly: False
IsFinal: False
IsHideBySig: True
IsPrivate: False
IsPublic: True
IsSpecialName: False
IsStatic: False
IsVirtual: True
MemberType: Method
MethodHandle: {System.RuntimeMethodHandle}
Name: "DoCmd"
ReflectedType: {System.RuntimeType}
2- If I try to open Format Style Dialog Form (VisioApp.DoCmd
(VisUICmds.visCmdFormatStyle)
System.Runtime.InteropServices.COMException is also thrown but with a
little bit different information
ex.Message:"Requested operation is presently disabled."
ex.TargetSite
{System.Reflection.RuntimeMethodInfo}
[System.Reflection.RuntimeMethodInfo]:
{System.Reflection.RuntimeMethodInfo}
Attributes: 454
CallingConvention: 33
DeclaringType: {System.RuntimeType}
IsAbstract: False
IsAssembly: False
IsConstructor: False
IsFamily: False
IsFamilyAndAssembly: False
IsFamilyOrAssembly: False
IsFinal: False
IsHideBySig: True
IsPrivate: False
IsPublic: True
IsSpecialName: False
IsStatic: False
IsVirtual: True
MemberType: Method
MethodHandle: {System.RuntimeMethodHandle}
Name: "DoCmd"
ReflectedType: {System.RuntimeType}
Can anyone tell me about why it is happening and any workaround for
it?
Thanks
Asif