AnsweredAssumed Answered

exclude a map layer from the print task

Question asked by SRoberts on Aug 28, 2015
Latest reply on Aug 28, 2015 by SRoberts

Does anyone know how I can exclude a map layer from a print task?  I have an operational layer on my map, but don't want to include it in the resulting print.    I am passing a PrintParameters object to the print task.  I am assigning the Map object to the printparameters.map property.  I can remove a layer id from Map object, print the map, then add the layer id back to the Map object, but what I would really like to do is just remove the layer from the print.  I don't see how I can do this without cloning the entire Map object, removing the layer, and then assigning the cloned object to printparameters.map.  There must be a better way!

Outcomes