Select to view content in your preferred language

Printer Widget - Custom Template

2436
17
10-23-2024 08:35 PM
GilHamilton
Emerging Contributor

I'm looking to use a custom print template for the print widget.

This template would be based on a layout.

How would I go about setting a layout as a print template?

It seems I need to configure a print service but I'm not sure if I have or how to access an arcgis server which seems to be necessary in configuring a print service. 

Would it possible to implement dynamic text in the template? 
In the templates already given in the widget you can edit things like 'title', could something similar be done for a custom template? 

0 Kudos
17 Replies
ShengdiZhang
Esri Regular Contributor

Hi @GilHamilton ,

If you are using Enterprise 11.3, after uploading your layout file to Content, you can find it directly in the print template settings under "Use layout from layout item."

ShengdiZhang_0-1729750571465.png

For AGOL, the situation is different since the default print service doesn't support custom templates. You would need to either:

  1. Publish your own print service to use custom templates (arcgis server needed), or
  2. Use the beta feature in Map Viewer that supports custom templates (please see the document at https://doc.arcgis.com/en/arcgis-online/administer/configure-services.htm#ESRI_SECTION2_44B600A9053F... )

Would it possible to implement dynamic text in the template? 

Regarding dynamic text - you can include custom text elements in the template. For Experience Builder specifically, you can set default values for these text elements in the print widget settings and modify them during runtime.

Regards,

Shengdi

jcgregg
New Contributor

Shengdi,

I have uploaded a custom layout template (pagx) but I cannot get the "Use layout from layout item" option to show up in the Template Configuration when adding a New Template within the Print Widget.  Am I missing a step?

 

Thanks,

Jesse

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @jcgregg ,

Are you using ArcGIS Online? This feature is not yet available on ArcGIS Online.

If you also have ArcGIS Enterprise, you can connect the Print widget to a print service from your Enterprise environment. In that case, you should be able to see the layout templates from your Enterprise content.

Thanks,

Shengdi

0 Kudos
DakshataShahi1
Emerging Contributor

Hello Shengdi,

I am trying to use a custom print template in ArcGIS Experience Builder (Enterprise 11.3). I uploaded the custom template from ArcGIS Pro as a web tool and added it to Experience Builder. However, when I attempt to print by selecting the feature I want to print, I receive an error message, as shown in the attached image. Has anyone encountered this issue or have any suggestions on how to resolve it?

DakshataShahi1_0-1755276297406.png

DakshataShahi1_1-1755276321808.png

 

 

ShengdiZhang
Esri Regular Contributor

Hi @DakshataShahi1 , From your screenshot and description, it seems you are using a custom print service rather than a custom print template. You can open the Developer Tools → Network tab and check whether any error messages appear in the 'execute' request. In most cases, such issues are related to the print service itself.

ShengdiZhang_0-1755481287823.png

 

0 Kudos
ajohnson
Emerging Contributor

Hi @jcgregg and @ShengdiZhang,

My organization just upgrade our Enterprise to 11.5 from 11.3. After our upgrade I am having this issue as well. At 11.3 I could easy add a custom layout template from right within ExB but after our upgrade the option doesn't show up at all. What's up with that? It was such a nice feature!

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @ajohnson ,

I can confirm this is a bug, thanks for bringing it to our attention.

As a temporary workaround, you can go to your organization settings → Utility services, and set the printing service URL to empty.

ShengdiZhang_0-1755485470526.png

Please let me know if the issue persists after trying this.

Thanks,

Shengdi

0 Kudos
krantiYadav75
Emerging Contributor

Hi @ShengdiZhang,

We are experiencing a similar issue. We have ArcGIS Enterprise 11.3 configured. Even when we use the ESRI default for printing, the issue still occurs.

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @krantiYadav75, It should work in 11.3. Could you share the URL of the print service you are using?

0 Kudos