I was wondering if when you pick landscape in the printer properties if it would stretch or if it would leave the size of the map as is.
<!-- Header --> <StackPanel Background="{TemplateBinding Background}" Grid.Row="0" Grid.ColumnSpan="2"> <TextBlock Text="{Binding Title, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Center" FontSize="12" Visibility="{Binding Title, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource toVisibility}}" /> </StackPanel> <!-- Body--> <StackPanel Grid.Row="1" Grid.Column="0"> <TextBlock TextWrapping="Wrap" Loaded="WirtReportText_Loaded" FontSize="14" Margin="5"/> </StackPanel> <StackPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Bottom" Orientation="Horizontal"> <Image Height="100" Width="50" Source="/wirt1.0;component/Images/IDNRlogo1.png" /> <Image Height="100" Width="200" Source="/wirt1.0;component/Images/DIRT_logo.png" /> </StackPanel> <Grid Grid.Row="1" Grid.Column="1"> <!-- Map--> <esri:Map x:Name="PrintMap" IsLogoVisible="False" controls:CloneMap.Map="{TemplateBinding Map}" controls:SurrogateBinder.OverviewMapPrinter="{Binding RelativeSource={RelativeSource TemplatedParent}}"> </esri:Map>
Dominique,Is there any way i can provide interface for the user to select the page layout and page size on the print window.
[INDENT]hai,am using silverlight with microsoft visual web developer 2010 express, how to retrieve the following errorNo best type found for implicitly-typed array [/INDENT]
the legend shown in the preview does not match the legend in its current state of the application.
But as soon as you open the print preview, the legend in it does not match want you see currently in the application. Is there a way to at least show the legend as you see it before pressing the print preview button?
Hi Paul,Sorry I didn't port my print sample to the Javascript API. The sample is very related to the .net API and not easy to port to Javascript as it is.Bonne chance.
Dear Dominique,
I'm using this sample in my application and otherwise it works very nicely but there is some problem with layers using PictureMarkerSymbols. They don't show on the cloned map and the symbols are also not drawn on the printable legend. Is this a bug or just something wrong with my setup? Have you ever tested with PictureMarkerSymbols? I'm using the latest version of the arcgis-samples-silverlight (from Esri/arcgis-samples-silverlight · GitHub ).
By the way, I noticed the same for ArcGISDynamicMapServiceLayers constructed with DynamicLayerInfos, but this is maybe not so suprising...
Thanks,
Samuli
After some testing it seems the problem is somewhere else in my application. I added the same FeatureLayers to the original sample and there was no problem. Now I just have to figure out what could cause this difference. Any ideas would be welcome...
Regards,
I added a branch with a fix for the dynamiclayerinfos issue.
Concerning the pircturemarkersymbols, I would need a repro case.
Thanks
Finally I found a way around this. I do not understand why but it appears that setting the feature layers Mode-property to "OnDemand" somehow stops the layer from showing properly on the clone map/printmap. And this even if Where-property is later set (which according to documentation should make the mode "Snapshot"). But, since I don't think I have any problem with a "Snapshot"-mode, the problem is solved, as far as I am concerned. Cant' really remember why we decided to set it to "OnDemand" in the first place...
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.