I am trying to open a report using the Run Report Command:
This worked just fine in my add-in for ArcMap 10.0, but now at 10.1 it crashes ArcMap....sometimes. Other times it works as expected.
Does anyone have any insight?
Code:
Dim pUID As UID = New UID
Dim pCmdItem As ESRI.ArcGIS.Framework.ICommandItem
pUID.Value = "{2E6D5D18-7606-4246-8953-A56410C43E8A}"
pCmdItem = My.ArcMap.Application.Document.CommandBars.Find(pUID)
If Not (pCmdItem Is Nothing) Then
pCmdItem.Execute()
End IfDoes anyone have any insight?