JustMe JustMe - 3 months ago 44
jQuery Question

PrintArea Jquery Plugin only prints what is visible in the div

I'm using jquery.printArea.js to print the contents of a div. The mode option is set to 'iFrame'. The div has overflow-y set so that the user can scroll vertically. When I set the print area to the div and print, it does not print everything in the div. It only prints what is displayed on the screen. How can I get the plugin to print the entire contents?


Can you try on your div

<div style="overflow: overflow-y; height:..." class="expand-div">

And in css

@media print {        
        overflow: visible !important;
        height: auto !important;

That should do the work!