Print preview in php desktop chrome is not working on the PC/Laptop which has printer configured. I've tried it with many PC. Instead of print preview the system print dialog appears.
Any solution for this issue??
Regards,
Jitesh Golecha.
--
You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.
For more options, visit https://groups.google.com/d/optout.
body {
-webkit-print-color-adjust: exact;
}If you take the element that you want to be the footer and set it to be position:fixed and bottom:0, when the page prints it will repeat that element at the bottom of each printed page. The same would work for a header element, just set top:0 instead.
For example:
<div class="divFooter">UNCLASSIFIED</div>
CSS:
<style type="text/css">
@media screen {
div.divFooter {
display: none;
}
}
@media print {
div.divFooter {
position: fixed;
bottom: 0;
}
}
</style>
//-webkit-print-color-adjust: exact;// for body and using a background image for a Legal sized div (since legal size printing was my requirement) with a background image whose opacity is set to 0.95 became the work around. And I still don't know why it worked! Anyway seems to be only a temporarily solution that may not work everywhere, not a generalized solution. Probably a // PHPDesktop version that includes latest releases of CEF/Chromium include PDFium engine for printing that
will give us in the future similar experiences to Google Chrome.// is the better and right solution. Hope to see the same soon.