schmidt75

How do not print hidden graphic?

Discussion created by schmidt75 on Jul 26, 2012
Latest reply on Jul 29, 2012 by schmidt75
Hi,

I would like to ask about printing. I am using
JavaScript API ver. 3.0, ArcGis server 10.1

I am trying to print just basemap with visible graphics. I have added point to graphic and I have made the point hidden. But, printed image contains this hidden graphic too.

I modified sample from ESRI web page,
just added one button with simple function to hide first added graphic.

<div data-dojo-type="dijit.form.Button" data-dojo-props="label:'Test3',  onClick:function(){test3();}">
</div>


function test3() {
app.map.graphics.graphics[0].hide();
}


Simulation of problem:
1. Run http://globus.sazp.sk/test02/print.htm
2. Add one point
3. Press button "Hide my graphic"
4. Pres button "Print"
Printed image contains point even though it is hidden.



Where I am wrong?

Thank you

Milan Schmidt

Outcomes