rucha thakkar

rucha thakkar

  • NA
  • 12
  • 533

Want to apply print functionality of google map in asp.net

Mar 20 2018 6:18 AM
Hello, I want to create print functionality of google map in my asp.net web application.
 
I use the following code for that,
  1. <script language="javascript">  
  2. var contents = window.opener.document.getElementById("dvMap");  
  3. document.write(contents.innerHTML);  
  4. window.print();  
  5. </script>  
  6. <input type="button" value="Print" onclick="javascript:this.style.display='none';window.print();this.style.display='';" />  
But while i am clicking on print button it will open print page but not show the map which i want to print,it show blank page.please refere following image.
 
https://ibb.co/bw1EvH
 
What is the solution?please suggest
 
Thanks.

Answers (2)