Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Run Report issues 10.1

$
0
0
I am trying to open a report using the Run Report Command:
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 If

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?

Viewing all articles
Browse latest Browse all 1374

Trending Articles