{"id":535052,"date":"2019-07-05T14:38:36","date_gmt":"2019-07-05T21:38:36","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=535052"},"modified":"2021-12-06T07:24:55","modified_gmt":"2021-12-06T15:24:55","slug":"print-reports-from-arcgis-enterprise-web-apps","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","title":{"rendered":"Print reports from ArcGIS Enterprise web apps"},"author":7351,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[22941],"tags":[24921,31201,296842,29441,32751],"industry":[],"product":[36571,36561],"class_list":["post-535052","blog","type-blog","status-publish","format-standard","hentry","category-mapping","tag-javascript","tag-print","tag-print-service","tag-reports","tag-web-apps","product-arcgis-enterprise","product-arcgis-pro"],"acf":{"short_description":"By baking a report template into a custom print service, you can make informative reports available for printing in ArcGIS Enterprise.","flexible_content":[{"acf_fc_layout":"content","content":"<p>Printing maps is essential to GIS. To print a static map from a web application, we rely on print services, just as we rely on a map service to run a web map or a geoprocessing service to run a web tool.<\/p>\n<p>A print service generates high-quality printable documents with a map and elements like titles and legends in an image file format or a vector format (such as PDF). The client application can send these documents to a printer or plotter to produce an excellent-looking map, be it large or small.<\/p>\n<p>Maps may be the most important element printed from your web GIS applications, but in many cases, a map is not enough to convey all the information you want. \u00a0Including text and graphical elements that describe the data in the map can make your printed document more useful and informative.<\/p>\n<p>Recently, ArcGIS Pro introduced a new capability to create <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/reports\/reports-in-arcgis-pro.htm\">reports<\/a>. Reports combine maps (and all their component elements like legends and scale bars) with non-map elements, such as tables and textual descriptions generated from the data in the map extent.<\/p>\n<p>This example report on endangered aquatic species in Canada was created in ArcGIS Pro and then packaged in a custom print service. When we embed that service in a JavaScript app&#8217;s print widget, we&#8217;re able to regularly print the report template.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":560452,"id":560452,"title":"report4","filename":"report4.png","filesize":304746,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/report4","alt":"Sample report with text elements","author":"7351","description":"","caption":"","name":"report4","status":"inherit","uploaded_to":535052,"date":"2019-07-06 00:06:16","modified":"2019-07-06 00:06:43","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1920,"height":1077,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","medium-width":464,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","medium_large-width":768,"medium_large-height":431,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","large-width":1920,"large-height":1077,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","1536x1536-width":1536,"1536x1536-height":862,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4.png","2048x2048-width":1920,"2048x2048-height":1077,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4-826x463.png","card_image-width":826,"card_image-height":463,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report4-1920x1077.png","wide_image-width":1920,"wide_image-height":1077}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>As you select features or filter them with a definition query, the other content in the report dynamically updates. This makes it easy to quickly reproduce professional-quality reports for different geographical areas and data sets while maintaining a consistent look and organization.<\/p>\n<p>Here, we selected several areas of the St. Lawrence River centered around beautiful Riviere-du-Loup, Quebec. The first page of our report (above) included the map, legend, reference inset, and other textual elements. The second page (below) contains a table that shows each of the aquatic species at risk within our selected features. Had we instead selected areas around the Bay of Fundy, our map and table elements in the printed report would have described those selected features.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":560462,"id":560462,"title":"report3","filename":"report3.png","filesize":99665,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/report3","alt":"Dynamic table in a printed report","author":"7351","description":"","caption":"","name":"report3","status":"inherit","uploaded_to":535052,"date":"2019-07-06 00:11:01","modified":"2019-07-06 00:11:13","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1080,"height":743,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","medium-width":379,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","medium_large-width":768,"medium_large-height":528,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","large-width":1080,"large-height":743,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","1536x1536-width":1080,"1536x1536-height":743,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","2048x2048-width":1080,"2048x2048-height":743,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3-676x465.png","card_image-width":676,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report3.png","wide_image-width":1080,"wide_image-height":743}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>While reports are really useful on their own in ArcGIS Pro, they can also give an extra dimension to your web applications. Embedding a report in a print service allows it to function as an available template for printing in your app. Anyone using the app can set a specific map extent and then print a report, with its non-map elements describing that map extent, in the same format automatically. It\u2019s highly reproducible, and as with other custom print templates, you can personalize it with your organization\u2019s logos, acknowledgments, and other design elements.<\/p>\n<p>Today, we&#8217;ll show you how to use reports created in ArcGIS Pro in a print service to make the report template available in your web apps.<\/p>\n<p>Before we dive deep, let\u2019s cover some basics first:<\/p>\n"},{"acf_fc_layout":"content","content":"<h2>Requirements and limitations<\/h2>\n<p>To create and share reports, you need to be using ArcGIS Pro 2.3 or later. To embed a report in a print service, you need to publish it to ArcGIS Server 10.7 or later.<\/p>\n<p>There is no generic report template available to embed \u2013 this is because reports are bound to a specific data schema. The layers with which you associate elements in the report must contain field names that match the field names you use in the report.<\/p>\n<p>This workflow makes use of a custom ArcPy script tool. If you\u2019ve never created a custom tool with ArcPy, don\u2019t fear \u2013 we\u2019ll help you make sense of what\u2019s needed.<\/p>\n<p>To help you learn the workflow, we\u2019ve made some sample resources available at the following links:<\/p>\n<ol>\n<li>A <a href=\"https:\/\/arcg.is\/DnObe\">zip file containing some sample code:<\/a>\n<ul>\n<li>A script tool (.tbx) ready to be published as a print service<\/li>\n<li>Two python script files (.py), and<\/li>\n<li>A report file (.rptx) created to work with a feature layer used in the following web map, created to <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/reports\/set-the-data-source.htm#ESRI_SECTION1_71599487971B4DBF82F5633D97B927C6\">only use selected features<\/a><\/li>\n<li>Two layout files (.pagx)<\/li>\n<\/ul>\n<\/li>\n<li>A <a href=\"https:\/\/arcg.is\/1COruX\">web map<\/a> that contains a feature layer showing U.S. state boundaries<\/li>\n<li>A <a href=\"https:\/\/arcg.is\/ePiX\">finished web application<\/a>\u00a0with Select and Print widgets\n<ul>\n<li>The print widget is set up to use a print service named &#8220;PrintMapsAndReports&#8221; off your local machine:<br \/>\n<a href=\"https:\/\/localhost\/arcgis\/rest\/services\/PrintMapsAndReports\/GPServer\/Export%20Web%20Map\">https:\/\/localhost\/arcgis\/rest\/services\/PrintMapsAndReports\/GPServer\/Export Web Map<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n"},{"acf_fc_layout":"content","content":"<h2>Prepare the print service<\/h2>\n<p>1. Download the zip file linked above and unzip it on your machine.<br \/>\nLet&#8217;s assume you unzipped it in c:\\data\\PrintMapsAndReports folder.<\/p>\n<p>2. Open ArcGIS Pro.<\/p>\n<p>3. On the Catalog pane, right click on Toolboxes node and select Add Toolbox option from the context menu. Select <strong>C:\\Data\\PrintMapsAndReports\\PrintTool\\Printing.tbx<\/strong>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":559962,"id":559962,"title":"print1","filename":"print1.png","filesize":14511,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/print1","alt":"Adding a new toolbox","author":"7351","description":"","caption":"","name":"print1","status":"inherit","uploaded_to":535052,"date":"2019-07-05 21:32:57","modified":"2019-07-05 21:33:34","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":348,"height":230,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","medium-width":348,"medium-height":230,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","medium_large-width":348,"medium_large-height":230,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","large-width":348,"large-height":230,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","1536x1536-width":348,"1536x1536-height":230,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","2048x2048-width":348,"2048x2048-height":230,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","card_image-width":348,"card_image-height":230,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print1.png","wide_image-width":348,"wide_image-height":230}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>4. Expand the toolbox &#8211; you&#8217;ll see two script tools in there.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":559972,"id":559972,"title":"print2","filename":"print2.png","filesize":7328,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/print2","alt":"Opening the Printing toolbox","author":"7351","description":"","caption":"","name":"print2","status":"inherit","uploaded_to":535052,"date":"2019-07-05 21:32:59","modified":"2019-07-05 21:33:27","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":312,"height":156,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2-213x156.png","thumbnail-width":213,"thumbnail-height":156,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","medium-width":312,"medium-height":156,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","medium_large-width":312,"medium_large-height":156,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","large-width":312,"large-height":156,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","1536x1536-width":312,"1536x1536-height":156,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","2048x2048-width":312,"2048x2048-height":156,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","card_image-width":312,"card_image-height":156,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print2.png","wide_image-width":312,"wide_image-height":156}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>Double-click on the <strong>Export Web Map<\/strong> tool to open it.<\/p>\n<p>5. In the tool options, specify <strong>C:\\Data\\PrintMapsAndReports\\Templates<\/strong> for the <strong>Layout Templates Folder<\/strong>.<\/p>\n<p>6. Click the <strong>Run<\/strong> button to execute the tool &#8211; stick around to make sure it runs successfully!<\/p>\n<p>7. Next, do the same with the <strong>Get Layout Templates Info<\/strong> tool.<br \/>\nMake sure you choose <strong>C:\\Data\\PrintMapsAndReports\\Templates<\/strong> folder here too.<\/p>\n<p>8. Share the geoprocessing results of both tool tasks you&#8217;ve just run &#8211; either as a <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/analysis\/geoprocessing\/share-analysis\/what-is-a-web-tool.htm\">web tool<\/a> to your ArcGIS Enterprise portal, or as a <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/analysis\/geoprocessing\/share-analysis\/what-is-a-geoprocessing-service.htm\">geoprocessing service<\/a> to your stand-alone ArcGIS Server, if that&#8217;s what you&#8217;re using. On the <strong>Configuration<\/strong> tab, for the <strong>Execution Mode<\/strong> property, choose <strong>Synchronous<\/strong>.<\/p>\n<p><u>Note<\/u>: <em>If you publish a geoprocessing service on a server running off your local machine, and name it <strong>PrintMapsAndReports<\/strong>, you can start it right away with <a href=\"https:\/\/arcg.is\/ePiX\">the sample web map<\/a><\/em>.<\/p>\n"},{"acf_fc_layout":"sidebar","content":"<h3>What if my report includes a map image layer?<\/h3>\n<p>When you select features that are in a sublayer of a map image layer (that is, a layer whose URL ends with the string <strong>\/MapServer<\/strong>) and then print, the selected features come to the print service as a separate feature collection in a graphics layer.<\/p>\n<p>So when you&#8217;re doing this workflow in the future, if your report contains a map image layer with multiple sublayers, you&#8217;ll need to do three things:<\/p>\n<ol>\n<li>Update the report <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/help\/reports\/set-the-data-source.htm#ESRI_SECTION1_71599487971B4DBF82F5633D97B927C6\">source to use all rows<\/a>.<\/li>\n<li>Before you run the customized Export Web Map tool, update the ArcPy script to set the source of the report to the graphics layer, rather than the map image layer.<\/li>\n<li>When the print service and your web app are up and running, open the Print widget. Check the settings box for <strong>Include Attributes<\/strong>\u00a0to ensure the feature collection in the graphics layer will be sent to the print service.<\/li>\n<\/ol>\n","image_reference":{"ID":560372,"id":560372,"title":"PrintWidget","filename":"PrintWidget.png","filesize":15214,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/printwidget","alt":"\"Include attributes\" selected in print widget settings","author":"7351","description":"","caption":"","name":"printwidget","status":"inherit","uploaded_to":535052,"date":"2019-07-05 23:49:12","modified":"2019-07-05 23:49:35","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":431,"height":664,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","medium-width":169,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","medium_large-width":431,"medium_large-height":664,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","large-width":431,"large-height":664,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","1536x1536-width":431,"1536x1536-height":664,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","2048x2048-width":431,"2048x2048-height":664,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget-302x465.png","card_image-width":302,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/PrintWidget.png","wide_image-width":431,"wide_image-height":664}},"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Right","spotlight_image":false},{"acf_fc_layout":"content","content":"<h2>Use the service in a web mapping application<\/h2>\n<p>If you published your print service on a server running on your local machine (i.e. localhost), open <a href=\"https:\/\/arcg.is\/ePiX\">the sample web application<\/a>.<\/p>\n<p>If you published the print service on a different machine, you need to create a new Web AppBuilder application from your portal or in ArcGIS Online. You can use <a href=\"https:\/\/arcg.is\/ePiX\">the sample web map<\/a>\u00a0in your application if you&#8217;d like.<\/p>\n<p>Add two widgets to the web app: <strong>Select<\/strong> and <strong>Print<\/strong>. For the <strong>Print<\/strong> widget, specify the URL of the print service you created from your <strong>Export Web Map<\/strong> task in the previous step.<\/p>\n<p>Now, it&#8217;s time to try out your new print service! Use the Select widget to select a few states on the map.<\/p>\n<p>Click on the Print widget, select\u00a0<strong>State Population<\/strong> layout, then click the Print button. You should receive a PDF output file in a few moments with reports showing in its 2nd page.<\/p>\n<p>If you had chosen\u00a0<strong>A4 Portrait<\/strong> template, the output PDF file wouldn&#8217;t have the report part in it. It happens because the python code only generates reports when it find a .rptx file in <strong>Layout Templates Folder<\/strong> with the same name as the layout you selected.<\/p>\n"},{"acf_fc_layout":"content","content":"<h2>What did I just do?<\/h2>\n<p>While you&#8217;re waiting, let&#8217;s explain what happens behind the scenes.<\/p>\n<p>The web app makes a call to your print service URL to print from the report template, including the specific states that you selected to give info in the report&#8217;s tables.<\/p>\n<p>The print service is technically a geoprocessing service running on ArcGIS Server. Printing on the server does the same basic action as running Export Web Map does in ArcGIS Pro.<\/p>\n<p>While the default print service that comes with ArcGIS Server is basically parallel to Export Web Map, the custom script tool you created modifies that operation to export your specific report template.<\/p>\n<p>Your custom print service performs the work of producing a PDF as specified and returns the output to the web app, which passes it to you.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":559982,"id":559982,"title":"print3","filename":"print3.png","filesize":49262,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\/print3","alt":"The completed and printed report","author":"7351","description":"","caption":"","name":"print3","status":"inherit","uploaded_to":535052,"date":"2019-07-05 21:33:00","modified":"2019-07-05 21:33:18","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":834,"height":687,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","medium-width":317,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","medium_large-width":768,"medium_large-height":633,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","large-width":834,"large-height":687,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","1536x1536-width":834,"1536x1536-height":687,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","2048x2048-width":834,"2048x2048-height":687,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3-564x465.png","card_image-width":564,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","wide_image-width":834,"wide_image-height":687}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2>Back to the map<\/h2>\n<p>By now, your printed map should be ready.<\/p>\n<p>Click on the result to open it, and you should see your report. The first page contains the map with the selected states highlighted, while the rest of the report includes attribute tables describing the data from your selections.<\/p>\n<p>Had you selected different states before printing, the printed report would have included attribute data for those states instead.<\/p>\n<p>You can see how this makes printing with report templates endlessly versatile. Once your custom print service is up and running on ArcGIS Server, you and your users just need to select what they want to see and hit Print &#8211; the service will do the rest.<\/p>\n"}],"authors":[{"ID":5971,"user_firstname":"Tanu","user_lastname":"Hoque","nickname":"Tanu Hoque","user_nicename":"mahoque","display_name":"Tanu Hoque","user_email":"ahoque@esri.com","user_url":"","user_registered":"2018-03-02 00:17:50","user_description":"Tanu is a product engineer on Esri Mapping Team focusing on map service, print service, and ArcGIS Pro. He also works on spatio-temporal analysis, spatial aggregation and real-time data. Tanu\u2019s background includes a masters in Urban Planning from University of Akron, Ohio, USA and a bachelor degree from Khulna University, Bangladesh, and worked as GIS Coordinator in City of West Springfield, and GIS Specialist in a hydrology modeling center in Bangladesh before joining Esri.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/12\/tanu-hoque2-e1609364913822-213x200.jpeg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"},{"ID":7351,"user_firstname":"Scott M.","user_lastname":"MacDonald","nickname":"SMMacDonald","user_nicename":"smmacdonald","display_name":"Scott M. MacDonald","user_email":"SMMacDonald@esri.com","user_url":"","user_registered":"2018-03-16 14:56:35","user_description":"","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/05\/headshot-vignette.png' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"related_articles":[{"ID":71431,"post_author":"4141","post_date":"2016-03-24 09:05:19","post_date_gmt":"2016-03-24 09:05:19","post_content":"","post_title":"Get Started with Custom Reports","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"get-started-with-custom-reports","to_ping":"","pinged":"","post_modified":"2025-08-15 17:05:44","post_modified_gmt":"2025-08-16 00:05:44","post_content_filtered":"","post_parent":0,"guid":"http:\/\/www.esri.com\/arcgis-blog\/products\/product\/uncategorized\/get-started-with-custom-reports\/","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"},{"ID":539752,"post_author":"6311","post_date":"2019-06-27 11:32:10","post_date_gmt":"2019-06-27 18:32:10","post_content":"","post_title":"Do More with ArcGIS Pro 2.4","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"do-more-with-arcgis-pro-2-4","to_ping":"","pinged":"","post_modified":"2019-06-27 12:42:12","post_modified_gmt":"2019-06-27 19:42:12","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=539752","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"}],"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/report5.png","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/printblog.png"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Print reports from ArcGIS Enterprise web apps<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Print reports from ArcGIS Enterprise web apps\" \/>\n<meta property=\"og:description\" content=\"By baking a report template into a custom print service, you can make informative reports available for printing in ArcGIS Enterprise.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-06T15:24:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.esri.com\/arcgis-blog\/wp-content\/uploads\/2019\/07\/print3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"834\" \/>\n\t<meta property=\"og:image:height\" content=\"687\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"By baking a report template into a custom print service, you can make informative reports available for printing in ArcGIS Enterprise.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\"},\"author\":{\"name\":\"Scott M. MacDonald\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/20f8361bd8ff478e880aca06aab66ee9\"},\"headline\":\"Print reports from ArcGIS Enterprise web apps\",\"datePublished\":\"2019-07-05T21:38:36+00:00\",\"dateModified\":\"2021-12-06T15:24:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\"},\"wordCount\":7,\"commentCount\":12,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"JavaScript\",\"Print\",\"print service\",\"reports\",\"Web Apps\"],\"articleSection\":[\"Mapping\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\",\"name\":\"Print reports from ArcGIS Enterprise web apps\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2019-07-05T21:38:36+00:00\",\"dateModified\":\"2021-12-06T15:24:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Print reports from ArcGIS Enterprise web apps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/20f8361bd8ff478e880aca06aab66ee9\",\"name\":\"Scott M. MacDonald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/05\/headshot-vignette.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/05\/headshot-vignette.png\",\"caption\":\"Scott M. MacDonald\"},\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Print reports from ArcGIS Enterprise web apps","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","og_locale":"en_US","og_type":"article","og_title":"Print reports from ArcGIS Enterprise web apps","og_description":"By baking a report template into a custom print service, you can make informative reports available for printing in ArcGIS Enterprise.","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2021-12-06T15:24:55+00:00","og_image":[{"width":834,"height":687,"url":"https:\/\/www.esri.com\/arcgis-blog\/wp-content\/uploads\/2019\/07\/print3.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_description":"By baking a report template into a custom print service, you can make informative reports available for printing in ArcGIS Enterprise.","twitter_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/print3.png","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps"},"author":{"name":"Scott M. MacDonald","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/20f8361bd8ff478e880aca06aab66ee9"},"headline":"Print reports from ArcGIS Enterprise web apps","datePublished":"2019-07-05T21:38:36+00:00","dateModified":"2021-12-06T15:24:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps"},"wordCount":7,"commentCount":12,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["JavaScript","Print","print service","reports","Web Apps"],"articleSection":["Mapping"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","name":"Print reports from ArcGIS Enterprise web apps","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2019-07-05T21:38:36+00:00","dateModified":"2021-12-06T15:24:55+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Print reports from ArcGIS Enterprise web apps"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/20f8361bd8ff478e880aca06aab66ee9","name":"Scott M. MacDonald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/05\/headshot-vignette.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/05\/headshot-vignette.png","caption":"Scott M. MacDonald"},"url":""}]}},"text_date":"July 5, 2019","author_name":"Multiple Authors","author_page":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/mapping\/print-reports-from-arcgis-enterprise-web-apps","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/printblog.png","primary_product":"ArcGIS Enterprise","tag_data":[{"term_id":24921,"name":"JavaScript","slug":"javascript","term_group":0,"term_taxonomy_id":24921,"taxonomy":"post_tag","description":"","parent":0,"count":151,"filter":"raw"},{"term_id":31201,"name":"Print","slug":"print","term_group":0,"term_taxonomy_id":31201,"taxonomy":"post_tag","description":"","parent":0,"count":28,"filter":"raw"},{"term_id":296842,"name":"print service","slug":"print-service","term_group":0,"term_taxonomy_id":296842,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":29441,"name":"reports","slug":"reports","term_group":0,"term_taxonomy_id":29441,"taxonomy":"post_tag","description":"","parent":0,"count":13,"filter":"raw"},{"term_id":32751,"name":"Web Apps","slug":"web-apps","term_group":0,"term_taxonomy_id":32751,"taxonomy":"post_tag","description":"","parent":0,"count":21,"filter":"raw"}],"category_data":[{"term_id":22941,"name":"Mapping","slug":"mapping","term_group":0,"term_taxonomy_id":22941,"taxonomy":"category","description":"","parent":0,"count":2691,"filter":"raw"}],"product_data":[{"term_id":36571,"name":"ArcGIS Enterprise","slug":"arcgis-enterprise","term_group":0,"term_taxonomy_id":36571,"taxonomy":"product","description":"","parent":0,"count":977,"filter":"raw"},{"term_id":36561,"name":"ArcGIS Pro","slug":"arcgis-pro","term_group":0,"term_taxonomy_id":36561,"taxonomy":"product","description":"","parent":0,"count":2037,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-enterprise","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/535052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/7351"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=535052"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/535052\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=535052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=535052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=535052"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=535052"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=535052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}