<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do not print hidden graphic? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728186#M67581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask about printing. I am using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript API ver. 3.0, ArcGis server 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified sample from ESRI web page, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just added one button with simple function to hide first added graphic. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div data-dojo-type="dijit.form.Button" data-dojo-props="label:'Test3',&amp;nbsp; onClick:function(){test3();}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function test3() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;app.map.graphics.graphics[0].hide();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simulation of problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Run &lt;/SPAN&gt;&lt;A href="http://globus.sazp.sk/test02/print.htm"&gt;http://globus.sazp.sk/test02/print.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add one point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Press button "Hide my graphic"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Pres button "Print"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Printed image contains point even though it is hidden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I am wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Milan Schmidt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2012 11:58:57 GMT</pubDate>
    <dc:creator>MilanSchmidt</dc:creator>
    <dc:date>2012-07-26T11:58:57Z</dc:date>
    <item>
      <title>How do not print hidden graphic?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728186#M67581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask about printing. I am using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript API ver. 3.0, ArcGis server 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified sample from ESRI web page, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just added one button with simple function to hide first added graphic. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div data-dojo-type="dijit.form.Button" data-dojo-props="label:'Test3',&amp;nbsp; onClick:function(){test3();}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function test3() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;app.map.graphics.graphics[0].hide();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simulation of problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Run &lt;/SPAN&gt;&lt;A href="http://globus.sazp.sk/test02/print.htm"&gt;http://globus.sazp.sk/test02/print.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add one point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Press button "Hide my graphic"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Pres button "Print"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Printed image contains point even though it is hidden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I am wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Milan Schmidt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 11:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728186#M67581</guid>
      <dc:creator>MilanSchmidt</dc:creator>
      <dc:date>2012-07-26T11:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do not print hidden graphic?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728187#M67582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We will fix this. At this moment, please use graphicsLayer.remove(graphic) to remove the graphic so that it won't be printed out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 22:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728187#M67582</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2012-07-27T22:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do not print hidden graphic?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728188#M67583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this occasion I a little bit modified file &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgis_js_api\\library\\3.0\\jsapi\\js\\esri\\tasks\\PrintTask.js.uncompressed.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I am using this one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just added one "if" code &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (gLayer.graphics[idx].visible) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;into method _createFeatureCollection&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will happily use original library file after fixing this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Milan Schmidt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 17:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-not-print-hidden-graphic/m-p/728188#M67583</guid>
      <dc:creator>MilanSchmidt</dc:creator>
      <dc:date>2012-07-29T17:57:23Z</dc:date>
    </item>
  </channel>
</rss>

