• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk MapGuide Enterprise Developer

    Reply
    Active Member
    Sanjeev019
    Posts: 6
    Registered: ‎11-19-2010

    How to get the properties page displayed in the print form

    468 Views, 2 Replies
    12-17-2010 08:41 PM

    Dear Sir,

    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

    Regards
    Sanjeev Khanikar
    +91-99575-36542

    Please use plain text.
    Active Member
    Sanjeev019
    Posts: 6
    Registered: ‎11-19-2010

    Re: How to get the properties page displayed in the print form

    01-25-2011 02:37 AM in reply to: Sanjeev019

    Can somebody, please HELP me out?

    Please use plain text.
    Active Member
    janechii
    Posts: 10
    Registered: ‎03-23-2011

    Re: How to get the properties page displayed in the print form

    03-23-2011 08:30 AM in reply to: Sanjeev019

    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 Fusion, use the Fusion JavaScript API to get the data of the current selection and pass them to the widget php script (.../Print/printablepage.php), then modify the .templ file to display those data.

     

    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.

     

    Good luck!

    Please use plain text.