Good morning all,I am using the silverlight printing sample from code gallery (http://www.arcgis.com/home/item.html...4358d0458f66e3).The issue we are experiencing stems from a specific layer that seems to be generating a bug within the cloned map on the print dialog. The offending layer is of annotations for parcel dimensions that, when present in the map layers, leaves the cloned map blank/grey. When I comment out this layer in the XAML, everything works as expected.The service will only display the layer when at an extent less than 1:2000, and while it is a cached layer, I am working with the layer on our ArcGIS Server, so I have it coded as a Dynamic Layer. The bug occurs either way.I have attempted to debug this within the print sample solution to no avail. I have also been unable to find information posted already referencing this excellent discussion.Here is some test code I am working with. The offending layer in the XAML is "layerDimensions". If anyone has suggestions, they are greatly appreciated.XAML<UserControl x:Class="TestPrinting.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
xmlns:controls="clr-namespace:ESRI.ArcGIS.Client.Samples.MapPrinting;assembly=MapPrintingControls">
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap" Background="White" Extent="12589861.5047889, 452193.576650939, 12776710.8368209, 634919.636547503" >
<esri:ArcGISTiledMapServiceLayer ID="layerBase" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/BaseLayerGrey/MapServer" />
<esri:ArcGISTiledMapServiceLayer ID="layerParcels" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/SL_Parcels/MapServer"/>
<esri:ArcGISTiledMapServiceLayer ID="layerRoads" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/SL_Roads1/MapServer" />
<esri:ArcGISDynamicMapServiceLayer ID="layerDimensions" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/SL_Dimensions/MapServer" />
</esri:Map>
<!--Print Dialog-->
<controls:MapPrinterDialog x:Name="mapPrinterDialog" Visibility="Collapsed"
HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" Height="400" Width="320">
<controls:MapPrinter x:Name="mapPrinter" Map="{Binding ElementName=MyMap}" Title="Test"
IsScaleFixed="True" Scale="500000"/>
</controls:MapPrinterDialog>
<!--Optional Busy indicator for the map printer-->
<controls:MapPrinterIndicator MapPrinter="{Binding ElementName=mapPrinter}" />
<ToggleButton x:Name="btnPrint" Click="btnPrint_Click" Content="Print Me" Width="150" Height="30" IsChecked="False" ></ToggleButton>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom">
<esri:MapProgressBar Map="{Binding ElementName=MyMap}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Width="150" Height="15" Margin="5"/>
</StackPanel>
</Grid>
</UserControl>
Code behindusing System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace TestPrinting
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void btnPrint_Click(object sender, RoutedEventArgs e)
{
if (btnPrint.IsChecked.Value)
{
mapPrinterDialog.Visibility = System.Windows.Visibility.Visible;
}
else
{
mapPrinterDialog.Visibility = System.Windows.Visibility.Collapsed;
}
}
}
}