Hi,
Currently we are using XamMap for Geo reporting. Every thing is fine but we need to export the data to Excel sheet or a Word file and need to take a print out of Map Report.
I am able to print the Map but I am unable to change the orientation to Landscape.
Does XamMap supports these Exporting and Printing features.
Thanks,Sudheer Cv.
Hi chandra123,
You should be able to set Landscape orientation through Print dialog's "Preferences". For exporting your data to Excel you can use Infragistics.Excel library: http://es.infragistics.com/dotnet/netadvantage/silverlight/infragistics-excel.aspx#Overview. You can read more about it here: http://help.infragistics.com/NetAdvantage/DV/2010.3/CLR4.0/?page=Infragistics_Excel_Engine.html
Please let me know if you have more questions.
Regards,
Ivan Kotev
Hi Ivan,
I want to change the orientation programatically.and I will try with Excel library and let you know. I thought that it is for Grid control. I don't know how to export Map data to excel, any how I will try and let you know.
Thanks,
Sudheer Cv.
You can use a couple MapElement' properties that can be useful for reporting like: Value, Caption, WorldRect, ToolTip and custom properties. Custom properties can be set through DataMapping or SetProperty(), you can read them with MapElement's GetProperty method, e.g.: you can report each MapElement's center coordinates (Longitude, Latitude) - http://community.infragistics.com/forums/p/47908/255970.aspx#255970
For the lanscape orientation - unfortunately Silverlight API doesn't provide a property to change page orientation.