Looking to add printing capabilities to the Parks Finder Web application. Specifically, a printout that shows the map as well as the directions and amenities information in the left tab panel.
Looking through the API it looks like the PrintTask is the most likely solution. Am I on the right track? I can't seem to find any samples that show how the PrintTask works together.
Is the print widget being created in your app? Have you confirmed that the code to create the print widget is running? The easiest way to do this is to put a console.log() or alert() after you call startup() on the print widget.
We are working to implement the Park and Recreation Finder template provided by Esri. We would like to extend the functionality to include an option to print a page that shows a map and the driving directions. Very similar to what Google Maps does.
The first question is, is the advice you have provided so far the correct way to implement the end product?
The first question is, is the advice you have provided so far the correct way to implement the end product?
The print functionality included in the API should be used to generate the map portion of your output. Once you have that, it'll be up to you to embed the image output alongside directions in a page that will print correctly using the browser's print function.
You can add a dynamic text element to map template and fill that with the directions string.
But I would recommend that you go with custom PDF. 1. Generate the image of current map view. 2. Create PDF using iTextSharp. 3. Add image on first page. 4. Add directions on second page.
I was trying to accomplish the functionality using ESRI printing map service without having to use the third party reporting libraries. I'll go with the suggested. Thanks again.