Select to view content in your preferred language

Hide/Remove PrintLayout button in ArcGIS Pro

551
2
Jump to solution
12-14-2023 12:25 AM
imrankhadri
New Contributor II

Is there a way to remove the Print Layout Button(esri_sharing_PrintLayout) from sharing tab from ArcGIS Pro.

I have managed removing the Export Layout using the below in the config.daml of my Addin.

<modules>
  <updateModule refID="esri_layouts">
    <splitButtons>
      <deleteSplitButton refID="esri_layouts_exportLayoutSplitButton"/>
    </splitButtons>
  </updateModule>
</modules>

I have failed to remove the print layout using the above method.

I have noticed that none of the  DAML definitions(https://github.com/Esri/arcgis-pro-sdk/tree/master/DAML) contain esri_sharing_PrintLayout. 

Am I missing something here.

0 Kudos
1 Solution

Accepted Solutions
imrankhadri
New Contributor II

The following did the trick.

<modules>
      <updateModule refID="esri_layouts">
          <splitButtons>
              <deleteSplitButton refID="esri_layouts_exportLayoutSplitButton"/> <!-- removes the export layout button-->
          </splitButtons>
      </updateModule>
      <updateModule refID="esri_sharing">
          <groups>
              <deleteGroup refID="esri_sharing_PrintLayout" /> <!-- remove print layout button -->
          </groups>
      </updateModule>
</modules>

Thanks to everyone.

 

View solution in original post

2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Update module refID must be "esri_sharing".

0 Kudos
imrankhadri
New Contributor II

The following did the trick.

<modules>
      <updateModule refID="esri_layouts">
          <splitButtons>
              <deleteSplitButton refID="esri_layouts_exportLayoutSplitButton"/> <!-- removes the export layout button-->
          </splitButtons>
      </updateModule>
      <updateModule refID="esri_sharing">
          <groups>
              <deleteGroup refID="esri_sharing_PrintLayout" /> <!-- remove print layout button -->
          </groups>
      </updateModule>
</modules>

Thanks to everyone.