Select to view content in your preferred language

Print Using Custom Template

360
4
a week ago
KelleyCochran
Emerging Contributor

I've been through the creation of a custom print template in Arcgis Pro, brought that into Arcgis Online, and can use it successfully in the Map Viewer.  But I cannot seem to access it using the Print widget in EB.

What do I need to do to make it available in EB - considering it works in Map Viewer?

0 Kudos
4 Replies
Leena_Abdulqader
Frequent Contributor

Hi @KelleyCochran, the Experience Builder's Print widget does not automatically inherit those templates from Map Viewer. Instead, EB's widget only sees what's available through the print service URL (ArcGIS Server or custom service) you configure in the widget. So, if you don't explicitly configure EB's Print widget to point at your service that contains your custom layout(s), EB will only show the stock templates from Esri's hosted service.

Configure the Experience Builder Print widget. In EB, add a Print widget.

In the widget settings, choose Use Utility Service (if you set your custom print service as the org's default), or directly paste your custom print service REST URL. EB will now pull in and list the layouts from your service — including your custom one.

Some issues you might face: 

  • Templates don't appear: Check that your layout was included in the print service and that it's enabled. You can verify by going to the REST endpoint of your print service and looking under Layouts.
  • Security/Access issues: Ensure the print service is shared with the right audience (public/org users, depending on your EB app's audience).

Also, did you publish your custom print template as part of a print service (In ArcGIS Pro → Share → Web Tool → PrintingTools → include your custom layout(s))

I hope that helps!

0 Kudos
KelleyCochran
Emerging Contributor

Thank you so much for the detailed response.  Unfortunately, I do not see Use Utility Service.

I am not using Enterprise. I have not made a print service.  It seems strange that they would allow the use of a template in Map Viewer, then make it unavailable to EB.  The real fix would be if the templates you can make in the Print widget were customizable (logos, etc). 

The Beta for Layout Template Group would lead you to believe EB should be able to use the same template as Map Viewer.

 

Layout template group (Beta)
Layout items contain page setup information for creating printer-friendly documents of your maps. Web apps like the Map Viewer can use these layouts as templates for printing web maps. Choose which group contains the layout templates you want to use for printing in your organization.
TanuHoque
Esri Regular Contributor

@KelleyCochran 

As you noted, this is a new functionality and is currently in beta. That is why ExB print widget doesn't support choosing a portal-item as a layout-template while using arcgis online hosted print service. ExB will support this once this capability is out of beta.

Thank you for your interest in this new funcationality.

Tanu

KelleyCochran
Emerging Contributor

That will be great if EB supports it!

Thank you.