ArcGIS API for JavaScript: Print_Format (MapServer)

Built using the ArcGIS API for JavaScript