Select to view content in your preferred language

consuming printing tool services from another domain

1763
0
07-25-2013 04:32 AM
mehmetyildiz
Deactivated User
hi,
i am trying to export map image using printing tool services. but i dont want to see my map legend in the map image. because of that i put my printing task parameters the code which is at the below.
LayoutOptions = new LayoutOptions()
                    {
                        LegendOptions = new LegendOptions()
                        {
                            LegendLayers = new List<ESRI.ArcGIS.Client.Printing.LegendLayer>()
                        }
                    }
the problem is that if i use this export tool in the same domain with my printing tool service it works. but if i use it from different domain it doesnT work. when i check the my requests i saw that if i put legendoptions to my print task parameters my request is using GET method. but if i donT put this parameter my request is using POST method. if i am using this parameters wrong how should i get map image withoud legend view? or if i am using this parameter right do i need to make my request using POST method? if it is yes how can i use POST method while i am reques printing tool services.
best regards
mehmet ali y�ld�z
0 Kudos
0 Replies