<?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 Printing functionality in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405894#M10486</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;If I want to add hard copy print functionality to my Silverlight map application, what can I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know there are printing classes in SL4 but does ESRI have anything in their API as well (more specific to printing maps)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 14:26:40 GMT</pubDate>
    <dc:creator>SeanDangers</dc:creator>
    <dc:date>2010-07-15T14:26:40Z</dc:date>
    <item>
      <title>Printing functionality</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405894#M10486</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;If I want to add hard copy print functionality to my Silverlight map application, what can I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know there are printing classes in SL4 but does ESRI have anything in their API as well (more specific to printing maps)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405894#M10486</guid>
      <dc:creator>SeanDangers</dc:creator>
      <dc:date>2010-07-15T14:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printing functionality</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405895#M10487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good afternoon, Sean!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to print maps just using the tools in Silverlight 4.&amp;nbsp; There are no special ESRI functions for printing that I'm aware of.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a sample project that just does printing, if you'd like to have a look.&amp;nbsp; I tried to upload it, but even zipped up it appears to be a bit too big.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reply with an email address I can reach you at, and I'll fire over the project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa Chesley&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 18:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405895#M10487</guid>
      <dc:creator>LisaChesley</dc:creator>
      <dc:date>2010-07-15T18:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Printing functionality</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405896#M10488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There was a small blog about printing Here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/04/Take-advantage-of-new-Silverlight-4.0-features-in-ArcGIS-Silverlight-API-2.0.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/04/Take-advantage-of-new-Silverlight-4.0-features-in-ArcGIS-Silverlight-API-2.0.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I did to add a print button to an existing app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start with a working map app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Drag in a button from the toolbox into the XAML design view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Double-click on the button in design, which stubs Click and takes you to the C#&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add a using statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using System.Windows.Printing;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add this code to the button�??s Click event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PrintDocument doc = new PrintDocument(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doc.PrintPage += (s, x) =&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; { x.PageVisual = MyMap; x.HasMorePages = false; }; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doc.Print("Map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure your XAML map name is MyMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run the app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the new button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click Preferences and pick Landscape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click ok&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pick a printer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click Print&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob Burke&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Redlands - Instructor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 21:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405896#M10488</guid>
      <dc:creator>RobertBurke</dc:creator>
      <dc:date>2010-07-15T21:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Printing functionality</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405897#M10489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have now got your print sample to work, thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if I want to do some more advanced printing with templates and better resolution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I can create a new usercontrol that would work as a template and either pass in services, extent etc from the map or just grab the image from the map and stick in to a user control?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 07:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405897#M10489</guid>
      <dc:creator>SeanDangers</dc:creator>
      <dc:date>2010-07-16T07:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Printing functionality</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405898#M10490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to print to PDF file, instead of printing to printer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 19:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/printing-functionality/m-p/405898#M10490</guid>
      <dc:creator>FengLin</dc:creator>
      <dc:date>2010-07-16T19:18:41Z</dc:date>
    </item>
  </channel>
</rss>

