I was trying out the printing and felt that we need to have a customized Printable form. By default, the print form uses the Legend, North Arrow and Page Title. I am OK with the last two - North Arrow and the Page Title. But instead of the legend, I want to display the properties value in the print form.
Please help me do it.
Any supporting codes will be very helpful along with screen shots, if possible
This would be quite an involved task, because the default printing facility is quite weak, you will have to essentially create your own. Are you using Fusion or AJAX viewer?
if you're using Fusion, see .../webserverextensions/www/fusion/widgets/Print*
and in AJAX, .../webserverextensions/www/mapviwerphp/printablepage*
This is how it works currently. Unfortunately, there is no way to pull properties with the current scripts. You'll have to write some code. Here's some guideline. Sorry I wont be able to guide you in details, but if you have specific questions, feel free to ask. By "properties", i am assuming you mean the properties of the current selections on the map?
In AJAX viewer, use the MapGuide API, write php code (probably in the printablepage.php) to retreive current selection (should depend on the session id), get the properties, then in the viewerfiles directory, find the .templ and modify to display the properties.
Just study how it works currently, and you'll get the idea.