Printing the Map control from an ASP.Net page

Last post 1/14/2010 4:36:44 PM by Maverick. 0 replies. << Back to Web.Maps.VE v2.0 General
1/14/2010 4:36:44 PM
Maverick

Printing the Map control from an ASP.Net page

Hello Chris,

I have been trying to print the Map control, but it dosent seem to do so. Here is what i am trying.

In the Index page i am storing Map's current state to session:
Session["MapState"] = Map1

On print Button click, i do
window.open("print.aspx");

in print.aspx i do:
<Simplovation:Map runat="server" id="printMap"/>

in print.aspx.cs i do:
Page_Load(object sender, EventArgs e)
{
     printMap = (Map)Session["MapState"];
}

But, it only display to me a standard map with centered on America. I dosent seem to pick up the information from the session.

Is there a different way of doing so, how can i achieve this ?
Any leads or help is most appreciated.

Thanks,