<?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 Re: Print widget scale bar problem in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315955#M9235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to this bug&amp;nbsp;on another site. The scale bar was not correct when printing from an application in Web Mercator. You need to adapt the Print.js file of the print widget and change the following line:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; this.printparams.outSpatialReference = this.map.spatialReference;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;into something like:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.printparams.outSpatialReference = new SpatialReference(32631);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;32631 has to be changed to&amp;nbsp;a Spatial Reference&amp;nbsp;WKID of your region. My MXD templates&amp;nbsp;used by the print service&amp;nbsp;are having the same reference system.&lt;/P&gt;&lt;P&gt;And of course, you have to&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;define(["esri/SpatialReference" ...], function (spatialReference...&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the beginning of the Print.js file&amp;nbsp;(the order of elements&amp;nbsp;in the define-part has to be the same as in the function-part)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 09:32:26 GMT</pubDate>
    <dc:creator>DavidDe_Reu</dc:creator>
    <dc:date>2017-11-08T09:32:26Z</dc:date>
    <item>
      <title>Print widget scale bar problem</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315952#M9232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: STwork&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published a printing service so I could use my templates. The templates include a scale bar. For some reason the scale bar doesn't match the scale of the map when it prints. It adjusts when I check the 'Use this Scale' option as an end user, but it isn't correct either way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attaching some pictures to show how this string of 50' lots doesn't scale properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31314[/ATTACH]&amp;nbsp;&amp;nbsp; [ATTACH=CONFIG]31315[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am stumped. Any insight as to why this would happen would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 14:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315952#M9232</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-11T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget scale bar problem</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315953#M9233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: STwork&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out this is a known bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg3Njc4"&gt;Documented here.&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 17:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315953#M9233</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-18T17:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget scale bar problem</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315954#M9234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Can this known limitation of the Flex Viewer be added to the help documentation so that future users won't waste hours trying to find this simple answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315954#M9234</guid>
      <dc:creator>TrevorWeiland</dc:creator>
      <dc:date>2014-09-11T19:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget scale bar problem</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315955#M9235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to this bug&amp;nbsp;on another site. The scale bar was not correct when printing from an application in Web Mercator. You need to adapt the Print.js file of the print widget and change the following line:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; this.printparams.outSpatialReference = this.map.spatialReference;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;into something like:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.printparams.outSpatialReference = new SpatialReference(32631);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;32631 has to be changed to&amp;nbsp;a Spatial Reference&amp;nbsp;WKID of your region. My MXD templates&amp;nbsp;used by the print service&amp;nbsp;are having the same reference system.&lt;/P&gt;&lt;P&gt;And of course, you have to&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;define(["esri/SpatialReference" ...], function (spatialReference...&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the beginning of the Print.js file&amp;nbsp;(the order of elements&amp;nbsp;in the define-part has to be the same as in the function-part)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315955#M9235</guid>
      <dc:creator>DavidDe_Reu</dc:creator>
      <dc:date>2017-11-08T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget scale bar problem</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315956#M9236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea why ESRI commented out the following line in the print.js code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//fix issue #7141&lt;BR /&gt; // this.printparams.outSpatialReference = this.map.spatialReference;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 05:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-widget-scale-bar-problem/m-p/315956#M9236</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-04-03T05:31:45Z</dc:date>
    </item>
  </channel>
</rss>

