locked
VE Print Option RRS feed

  • Question

  • Hi All,

    I had implemented VEPrintOption in our web site. for Virtual Earth maps tp give print option.
    The issue here is some times My IE is throwing and error message.
    I am using IE-7.

    The error says "Internet Explorer has encountered a problem and needs to close. we are sorry for the inconvenience".
    and the give the dialog box with Debug ,  send error report and don't send buttons.

    Can any one help me solve this issue. As it is critical one that i am facing.

    1function vmMapPrint() 
    2
    3    var txt=""
    4    try 
    5    { 
    6        if (TMAP.VEMap != null
    7        { 
    8            var printOpt = new VEPrintOptions(true); 
    9            TMAP.VEMap.SetPrintOptions(printOpt); 
    10            // Print the map  
    11            window.print(); 
    12 
    13            printOpt = new VEPrintOptions(false); 
    14            TMAP.VEMap.SetPrintOptions(printOpt); 
    15        } 
    16    } 
    17    catch(err) 
    18    { 
    19      txt="There was an error on this page.\n\n"
    20      txt+="Error description: " + err.description + "\n\n"
    21      txt+="Click OK to continue.\n\n"
    22      alert(txt); 
    23    } 
    24

    Thank you,
    Raj Gopal.
    RAJGOPAL
    Monday, October 20, 2008 3:07 PM

All replies

  • APPALA RAJGOPAL said:

    Hi All,

    I had implemented VEPrintOption in our web site. for Virtual Earth maps tp give print option.
    The issue here is some times My IE is throwing and error message.
    I am using IE-7.

    The error says "Internet Explorer has encountered a problem and needs to close. we are sorry for the inconvenience".
    and the give the dialog box with Debug ,  send error report and don't send buttons.

    Can any one help me solve this issue. As it is critical one that i am facing.

    1 function vmMapPrint() 
    2
    3     var txt=""
    4     try 
    5     { 
    6         if (TMAP.VEMap != null
    7         { 
    8             var printOpt = new VEPrintOptions(true); 
    9             TMAP.VEMap.SetPrintOptions(printOpt); 
    10             // Print the map  
    11             window.print(); 
    12  
    13             printOpt = new VEPrintOptions(false); 
    14             TMAP.VEMap.SetPrintOptions(printOpt); 
    15         } 
    16     } 
    17     catch(err) 
    18     { 
    19       txt="There was an error on this page.\n\n"
    20       txt+="Error description: " + err.description + "\n\n"
    21       txt+="Click OK to continue.\n\n"
    22       alert(txt); 
    23     } 
    24

    Thank you,
    Raj Gopal.
    RAJGOPAL




    RAJGOPAL
    Wednesday, October 22, 2008 11:05 AM