<?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: API 2.0 and Printing to scale in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666620#M17159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code to enable the print command is quite simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
private bool CanPrint(object param)
{
return IsPrinting == false &amp;amp;&amp;amp; Map != null;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So very likely the Map property is null, but I can't figure out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want, send me your code by mail &lt;/SPAN&gt;&lt;A href="mailto:&amp;quot;dbroux@esri.com&amp;quot;" rel="nofollow noopener noreferrer" target="_blank"&gt;dbroux@esri.com&lt;/A&gt;&lt;SPAN&gt;, I'll take a look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:45:18 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2021-12-12T16:45:18Z</dc:date>
    <item>
      <title>API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666610#M17149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the API 2.0 and I want to print maps using pre-defined scales (e.g. 1:1000, 1:2500, etc.) on different papersizes up to A0. I also want to use print templates. I think that I need to use some sort of services (e.g. ArcObjects) to generate such maps. Are there any examples around? or can someone point me to the right direction please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read that there is something called layout SOE. What is it? How to use it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 03:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666610#M17149</guid>
      <dc:creator>BrianBorg</dc:creator>
      <dc:date>2010-08-02T03:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666611#M17150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am going to write a print sample (at the client side) which is multi pages and printing at fixed scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A first version is available here : &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/MapPrinting.html"&gt;&lt;SPAN style="font-size:2;"&gt;http://broux.dominique.free.fr/Silverlight/MapPrinting/MapPrinting.html&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your feedback would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will post the code soon &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note : The print extent is the current map extent at the time the preview window is opened. I guess, a way to change the print extent from the preview would be useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 10:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666611#M17150</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-08-06T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666612#M17151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The sample looks great Dominique.&amp;nbsp; I'll be excited to see the source code whenever it's available.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 19:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666612#M17151</guid>
      <dc:creator>JohnPalmbach</dc:creator>
      <dc:date>2010-08-09T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666613#M17152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent example. My only question remains how can I generate images large enough to be printed on for example A0 paper?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 04:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666613#M17152</guid>
      <dc:creator>BrianBorg</dc:creator>
      <dc:date>2010-08-10T04:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666614#M17153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having this issue as well can you post the printing code. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am going to write a print sample (at the client side) which is multi pages and printing at fixed scale.&lt;BR /&gt; &lt;BR /&gt;A first version is available here : &lt;BR /&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/MapPrinting.html"&gt;&lt;SPAN style="font-size:2;"&gt;http://broux.dominique.free.fr/Silverlight/MapPrinting/MapPrinting.html&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Your feedback would be appreciated.&lt;BR /&gt; &lt;BR /&gt;I will post the code soon &lt;BR /&gt; &lt;BR /&gt;Note : The print extent is the current map extent at the time the preview window is opened. I guess, a way to change the print extent from the preview would be useful.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 20:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666614#M17153</guid>
      <dc:creator>JoshuaDye</dc:creator>
      <dc:date>2010-08-10T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666615#M17154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Excellent example. My only question remains how can I generate images large enough to be printed on for example A0 paper?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some tests with A0 printer driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into 2 limitations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Need to decrease the printer resolution when the size increases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From A2 size, 600dpi is no more working, I have to use 300dpi or less&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With A0, 300dpi is not working, need 150dpi or less.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not working means that nothing happens when clicking OK in the printer dialog box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I only tested on one machine and one high size driver, I don't know if it's a generic Silverlight behavior in order to limit the size of the print job or if it's tied to my OS or my driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) With my sample, the ArcGISDynamicMapService layers don't print from A2 size. Unfortunately I don't think I will find a workaround soon:( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the results of my tests (with PDF driver):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A4.pdf"&gt;A4 600dpi &lt;/A&gt;&lt;SPAN&gt;(default)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A3.pdf"&gt;A3 600dpi&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A44pages300dpi.pdf"&gt;A4 4 pages 300dpi&lt;/A&gt;&lt;SPAN&gt; (would work with 600dpi, I set 300 to limit the result size)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A416pages150dpi.pdf"&gt;A4 16 pages 150dpi &lt;/A&gt;&lt;SPAN&gt;(would work with 600dpi, I set 150 to limit the result size)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A2300dpi.pdf"&gt;A2 300dpi &lt;/A&gt;&lt;SPAN&gt;(I was unable to get better resolution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/MapPrinting/TourdeFrance2010A0150dpi.pdf"&gt;A0 150 dpi &lt;/A&gt;&lt;SPAN&gt;(I was unable to get better resolution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;�??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666615#M17154</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-08-13T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666616#M17155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just posted the print sample on the ArcGIS.com code gallery : &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3"&gt;http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would have needed a few code refactoring and clean-up but as I am in vacations &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; during the next 2 weeks:), I'd rather to post it as is. So I'll get your feedbacks when I am back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666616#M17155</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-08-13T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666617#M17156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just posted the print sample on the ArcGIS.com code gallery : &lt;A href="http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3"&gt;http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;It would have needed a few code refactoring and clean-up but as I am in vacations &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; during the next 2 weeks:), I'd rather to post it as is. So I'll get your feedbacks when I am back.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominique:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wanted to thank you for your awesome print controls. Unfortunately, having a bit of trouble integrating it into my application. As you may be able to gather from my posting history, I'm a bit new to Silverlight, so I'm still learning the ropes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Long story short, my print_preview button (utilizing your ToggleVisibilityAction) doesn't do anything, and my Button utilizing the PrintCommand Binding is disabled. What determines if the control bound to PrintCommand will be enabled or disabled? I'm still working on the ToggleVisibilityAction, but please keep in mind, as new as I am to Silverlight, I'm even more new to MVC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 17:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666617#M17156</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-02T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666618#M17157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your nice feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;What determines if the control bound to PrintCommand will be enabled or disabled? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The command is disabled if the map attached to the map printer is null or is being printed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess your issue is coming from the map binding. &lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;Check that the map element name (Map is this sample) is the right one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;esri:Map x:Name="&lt;SPAN style="color: red; font-size: 3;"&gt;&lt;STRONG&gt;Map&lt;/STRONG&gt;&lt;/SPAN&gt;" Background="White" Extent="-400000, 5230000, 840000, 6870000"&amp;gt;
&amp;lt;esri:ArcGISTiledMapServiceLayer ID="Basemap" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /&amp;gt;
&amp;lt;esri:ArcGISDynamicMapServiceLayer ID="TourDeFrance" Url="http://88.191.74.143/ArcGIS/rest/services/TourDeFrance2010/MapServer" Opacity="1.0" /&amp;gt;
&amp;lt;/esri:Map&amp;gt;
 
.......... 
 
 &amp;lt;controls:PrintPreview x:Name="PrintPreview"&amp;gt;
&amp;lt;controls:MapPrinter x:Name="mapPrinterWithPreview"Map="{Binding ElementName=&lt;SPAN style="color: red; font-size: 3;"&gt;Map&lt;/SPAN&gt;}" PrintDocumentName="Tour de France 2010" IsActive="&lt;STRONG style="color: red;"&gt;True&lt;/STRONG&gt;" Height="1050" Width="750"
BorderBrush="#20000080" BorderThickness="2" Foreground="White" Background="{StaticResource CommonBackgroundBrush}" /&amp;gt;
&amp;lt;/controls:PrintPreview&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;my print_preview button (utilizing your ToggleVisibilityAction) doesn't do anything&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No clue without more info. I suggest you set IsActive to True, so you should see the print preview without using the button. (You might also try to set the Visibility of the PrintPreviewPanel to 'Visible' instead of using a binding :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;local:WindowPanel x:Name="PrintPreviewPanel" Width="340" Height="405" Effect="{StaticResource dropShadow}"
Background="{StaticResource CommonBackgroundBrush}"
Visibility="&lt;SPAN style="color: red; font-size: 2;"&gt;&lt;STRONG&gt;Visible&lt;/STRONG&gt;&lt;/SPAN&gt;"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,60,10,0" BorderBrush="{StaticResource CommonBorderBrush}"&amp;gt;
&lt;/PRE&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666618#M17157</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T04:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666619#M17158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Kevin,&lt;BR /&gt; &lt;BR /&gt;Thank you for your nice feedback.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;The command is disabled if the map attached to the map printer is null or is being printed.&lt;BR /&gt;I guess your issue is coming from the map binding. &lt;SPAN style="font-size:2;"&gt;Check that the map element name (Map is this sample) is the right one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;esri:Map x:Name="&lt;SPAN style="color: red; font-size: 3;"&gt;&lt;STRONG&gt;Map&lt;/STRONG&gt;&lt;/SPAN&gt;" Background="White" Extent="-400000, 5230000, 840000, 6870000"&amp;gt;
&amp;lt;esri:ArcGISTiledMapServiceLayer ID="Basemap" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /&amp;gt;
&amp;lt;esri:ArcGISDynamicMapServiceLayer ID="TourDeFrance" Url="http://88.191.74.143/ArcGIS/rest/services/TourDeFrance2010/MapServer" Opacity="1.0" /&amp;gt;
&amp;lt;/esri:Map&amp;gt;
 
.......... 
 
 &amp;lt;controls:PrintPreview x:Name="PrintPreview"&amp;gt;
&amp;lt;controls:MapPrinter x:Name="mapPrinterWithPreview"Map="{Binding ElementName=&lt;SPAN style="color: red; font-size: 3;"&gt;Map&lt;/SPAN&gt;}" PrintDocumentName="Tour de France 2010" IsActive="&lt;STRONG style="color: red;"&gt;True&lt;/STRONG&gt;" Height="1050" Width="750"
BorderBrush="#20000080" BorderThickness="2" Foreground="White" Background="{StaticResource CommonBackgroundBrush}" /&amp;gt;
&amp;lt;/controls:PrintPreview&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;No clue without more info. I suggest you set IsActive to True, so you should see the print preview without using the button. (You might also try to set the Visibility of the PrintPreviewPanel to 'Visible' instead of using a binding :&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;local:WindowPanel x:Name="PrintPreviewPanel" Width="340" Height="405" Effect="{StaticResource dropShadow}"
Background="{StaticResource CommonBackgroundBrush}"
Visibility="&lt;SPAN style="color: red; font-size: 2;"&gt;&lt;STRONG&gt;Visible&lt;/STRONG&gt;&lt;/SPAN&gt;"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,60,10,0" BorderBrush="{StaticResource CommonBorderBrush}"&amp;gt;
&lt;/PRE&gt;).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, my Binding to my Map control is correct. Setting IsActive=true on the print preview panel brings up the PrintPreviewPanel, but with nothing inside it. I'm at a loss as to why it doesn't seem to want to handle my map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666619#M17158</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2021-12-12T04:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666620#M17159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code to enable the print command is quite simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
private bool CanPrint(object param)
{
return IsPrinting == false &amp;amp;&amp;amp; Map != null;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So very likely the Map property is null, but I can't figure out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want, send me your code by mail &lt;/SPAN&gt;&lt;A href="mailto:&amp;quot;dbroux@esri.com&amp;quot;" rel="nofollow noopener noreferrer" target="_blank"&gt;dbroux@esri.com&lt;/A&gt;&lt;SPAN&gt;, I'll take a look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666620#M17159</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666621#M17160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Strange.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;The code to enable the print command is quite simple:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
private bool CanPrint(object param)
{
return IsPrinting == false &amp;amp;&amp;amp; Map != null;
}
&lt;/PRE&gt; &lt;BR /&gt;So very likely the Map property is null, but I can't figure out why.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;If you want, send me your code by mail&amp;nbsp;&amp;nbsp; &lt;A href="mailto:&amp;quot;dbroux@esri.com&amp;quot;" rel="nofollow noopener noreferrer" target="_blank"&gt;dbroux@esri.com&lt;/A&gt;, I'll take a look.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominique: My printing control has started working. The print preview isn't working, but I may have an idea of what's wrong. I'll keep working on it and let you know if I need additional help. Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666621#M17160</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2021-12-12T04:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666622#M17161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just added a WPF version of the&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3"&gt; map printing sample&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With this version, an intermediary XPS document is created and can be &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/WPF/MapPrinting/PrintPreview.png"&gt;previewed &lt;/A&gt;&lt;SPAN&gt;before printing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://broux.dominique.free.fr/WPF/MapPrinting/MapPrinting.html"&gt;Test it live&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 15:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666622#M17161</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-12-28T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666623#M17162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dominique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your excellent work on the printing sample. I have been using the direct printing sample a lot. After your most recent changes, it appears that the direct printing sample is broken. I have a feeling it's related to the code you've added to free the cloned map layers, but I don't know for sure. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 18:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666623#M17162</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2011-01-05T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666624#M17163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: black;"&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black;"&gt;You are right, there is a bug. To fix it, line 424 of MapPrinter.cs, move the initialization of _oldMap inside the test Map!=null:&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:blue;"&gt;if&lt;/SPAN&gt; (Map != &lt;SPAN style="color:blue;"&gt;null&lt;/SPAN&gt;)
{
&amp;nbsp; &lt;SPAN style="color:red;"&gt;_oldMap = Map;&lt;/SPAN&gt;
&amp;nbsp; Map = &lt;SPAN style="color:blue;"&gt;null&lt;/SPAN&gt;;
}
ResetDefineExtent();
&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color:black;"&gt;I will update the sample ASAP (I guess I should even revisit this badly designed part of the sample)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666624#M17163</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T04:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666625#M17164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dominique. That works on my end. I thought I would share a couple of snippets I added/modded to MapPrinter.theme.xaml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;ControlTemplate TargetType="local:MapPrinter"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- Body--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Grid Grid.Row="1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- Map--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Map x:Name="PrintMap" ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- Scale Bar --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:ScaleBar Map="{Binding ElementName=PrintMap}" HorizontalAlignment="Left" VerticalAlignment="Bottom" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Margin="20" TextColor="Black" RenderTransformOrigin="0,1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ScaleBar.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RotateTransform Angle="{Binding Rotation, ElementName=PrintMap}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:ScaleBar.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:ScaleBar&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- North Arrow --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Grid Width="50" Height="50" Margin="20"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HorizontalAlignment="Right" VerticalAlignment="Top" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RenderTransformOrigin=".5,.5" Opacity="0.7"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RotateTransform Angle="{Binding Rotation, ElementName=PrintMap}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Path Data="M0.5,0 L0,1 L0.5,0.8 L1,1 z" Fill="White" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="N" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" RenderTransformOrigin="0.5,0.5" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CompositeTransform TranslateY="4"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TextBlock.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TextBlock&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ControlTemplate&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 16:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666625#M17164</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2011-01-06T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: API 2.0 and Printing to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666626#M17165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A North Arrow is a good idea&amp;nbsp; (furthermore well oriented:))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will integrate your enhancement in the next version of the sample.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 17:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/api-2-0-and-printing-to-scale/m-p/666626#M17165</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-01-06T17:51:42Z</dc:date>
    </item>
  </channel>
</rss>

