Select to view content in your preferred language

Printing Version 3

2931
2
01-24-2012 12:42 AM
MuhammadWaqar_ul_islam
Occasional Contributor
i m using the sample version 3 for printing
http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap
getting error on export (snap shot is attached )

and i want to creat my on own services for printing
http://servicesbeta2.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export%20Web%20Ma...
how to create
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Are you part of esri beta community? If yes, you might want to post in that forum since v3.0 is still at beta state. As for the NullReference exception. e.PrintResult will be null if e.Error has a value so modify the code to this:
  private void printTask_PrintCompleted(object sender, PrintEventArgs e)
  {
   if (e.Error != null)
   {
    MessageBox.Show(e.Error.Message);
    return;
   }
   System.Windows.Browser.HtmlPage.Window.Navigate(e.PrintResult.Url, "_blank");
  }

Please post to 10.1 server forum in the beta community to ask how you can set up your own print service. They have one that you can simply enable under Utilities.
0 Kudos
samehsaras
Deactivated User
I used ArcGIS Server 10.1 Previous month and i created some layout template(MXD) , and i registed custom filder and create new Print service tools and publish GP result . when i use GP Service (Print) using Silverlight API 3.0 occutred the same error .

please any body help me
0 Kudos