This Routine in VB6 is working :
Private Sub Aggiorna_Stato()
Dim CompositeViewer As AdCommon.IAdECompositeViewer3
Dim Section As ECompositeViewer.IAdSection
Dim MyObjects As AdCommon.IAdCollection, MyObjectProperties As AdCommon.IAdCollection
Dim MyObjectsNamedCollection As AdCommon.IAdUserCollection
Dim ObjectContent As ECompositeViewer.IAdContent
Dim MyObject As ECompositeViewer.IAdObject
Dim MyObjectProperty As AdCommon.IAdProperty
Dim Commands As AdCommon.IAdCollection
Dim SectionType As ECompositeViewer.IAdSectionType
CompositeViewer = AxCExpressViewerControl1.ECompositeViewer
Commands = CompositeViewer.Commands
Commands.Item("ISOLATE").Enabled = True
Section = CompositeViewer.Section
SectionType = Section.SectionType
ObjectContent = Section.Content
MyObjectsNamedCollection = ObjectContent.CreateUserCollection
MyObjects = ObjectContent.Objects(0) '0 is to return all objects
ObjectContent.Objects(1) = MyObjectsNamedCollection
For Each MyObject In MyObjects
MyObjectProperties = MyObject.Properties
For Each MyObjectProperty In MyObjectProperties
'
' DO SOMETHING
Next
Next
End Sub
In Vb.net generate this error:
Thank you for your question.
Please insure DWF/x file loading succeed before you invoking this code.
Any further questions please let me know.
I use Visual Studio 2008 (VB) with ADR 2010.
When i launch program i receive many errors of this type:
System.Windows.Data Error: 39 : BindingExpression path error: 'QuickAccessToolBar' property not found on 'object' ''ComponentSettings' (HashCode=31307802)'. BindingExpression:Path=QuickAccessToolBar.Theme.CurrentBrush; DataItem='ComponentSettings' (HashCode=31307802); target element is 'Border' (Name=''); target property is 'Background' (type 'Brush')
System.Windows.Data Error: 39 : BindingExpression path error: 'Id' property not found on 'object' ''RibbonPanel' (HashCode=25039667)'. BindingExpression:Path=Id; DataItem='RibbonPanel' (HashCode=25039667); target element is 'RibbonPanelControl' (Name=''); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 39 : BindingExpression path error: 'Id' property not found on 'object' ''RibbonPanel' (HashCode=25039667)'. BindingExpression:Path=Id; DataItem='RibbonPanel' (HashCode=25039667); target element is 'DockPanel' (Name='PART_OuterDockPanel'); target property is 'AutomationId' (type 'String')
"Please insure DWF/x file loading succeed before you invoking this code."
how this can be achieved in using c#?
Thank you for your question.
Please monitor the event ViewerEvents.OnEndLoadItem. This event gets fired after the Dwf Viewer control is loaded, and after a DWF file is loaded in the canvas.
Any further questions please let me know.
Thanks,
-Herbert
The NullReferenceException is designed as a valid runtime condition that can be thrown and caught in normal program flow. It indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized. More about...NullpointerException
Walsh
Can't find what you're looking for? Ask the community or share your knowledge.