Select to view content in your preferred language

map printing issue

772
1
09-26-2011 04:03 AM
MuhammadWaqar_ul_islam
Occasional Contributor
i m using arcgis api for silverlight - Interactive sample
i have create a button for print on the Main Panel
code behind the button
  private void print_Click(object sender, RoutedEventArgs e)
        {
                     
            // create an instance of PrintDocument

            PrintDocument document = new PrintDocument();

            // tell the API what to print

            document.PrintPage += (s, args) =>
            {
                args.PageVisual = tabPanel;
            };

            document.Print("Print In Silverlight");
        }

it print the map but the issue is it did not print on the whole page either A4, A3 size is seleted
attaching the print out for reference
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
it print the map but the issue is it did not print on the whole page either A4, A3 size is seleted


Before printing the map, the layers must have been drawn at the expected size else some regions of the map may be blank or not complete.
For high printer size (A3, A2, ...), it sometimes difficult to display such a size to the screen.
One option may be to use a ViewBox as container for the map. The viewbox allows to display  a large map to the screen, so the map can then be printed (sample showing that)
0 Kudos