Select to view content in your preferred language

Printing with Silverlight API 2.0.

760
3
05-25-2010 09:34 AM
DanDulan
Emerging Contributor
Has anybody had any luck printing maps to a printer, using new Silverlight 4 printing?
Printing to a file works fine, but sending the map to a printer is a different story.
I have tried many printers and no success so far....just dots or mixed colors.
There is a max image size constraint , like in .NET ADF?
0 Kudos
3 Replies
dotMorten_esri
Esri Notable Contributor
I haven't noticed any issues like this. How are you doing the printing?
0 Kudos
DanDulan
Emerging Contributor
private void printButton_Click(object sender, RoutedEventArgs e)
        {
            PrintDocument doc = new PrintDocument();
            doc.PrintPage += (s, a)
                => { a.PageVisual = myMap; a.HasMorePages = false; }; doc.Print("testing");
        }


I  have tried the following printers:
HP Color LaserJet 5500 dtn
HP LaserJet 4200 dtn
HP LaserJet P4515x
0 Kudos
DanDulan
Emerging Contributor
I would like to print a map on a report page (letter size). The map size should be approximate 200x300.
It works if I send the report to a plotter (HP Designjet 5500ps 60) or if I print to a file but It should work also on a regular color printer.
I have tried three different printers and it doesn't work.
Is this possible?
0 Kudos