How to print Html page with image using Jquery

285
Views
0
Answers

Hi,
My application is in asp.net MVC3 coded in C#.Net, I have a certain view with the requirement to print the complete Html of a div in that view.

Suppose

    My table data

Im trying the following code but not working

 var w = window.open();
 w
.document.write($("#Printable_Div").html());
  w
.print();
  w
.close();

Also i have tried using the jquery printElement.js

$("#Printable_Div").printElement();

And Also
window.print();
I have also tried setting the Image as the background of the

There is not any issue in printing the Html page, but the issue is the image is not getting displayed in all the three methods tried above. Using plug-In is out of scope of my application. I want to print the entire HTML that is available in the Div with the ID=Printable_Div
Is there any solution to display the image in the print as well.

edit | flag
Ehtesham Siddiqui
Asked on: May 08, 2013 at 4:21PM

0 Answers

No Answers yet! Be first to Answer this Question

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags