I’ve had some code developed that creates invoices in HTML pages by reading a CSV file
I can’t explain why, but the HTML content just doesn’t print sometimes
The worst thing is that it happens 50% of the time<br>So, sometimes OK, other times a big pain
When the problem comes, I can print fine in any other web pages fine – the problem seems to be JUST the HTML pages that have been generated
IMPORTANT: I can only use Chrome
One of the text fields needs to be turned sideways – the developer said the code only worked on Chrome
The only thing I guessed that could possible affect the printing was the media code in the CSS
I’ve given it below… just in case it’s relevant:
[CODE]
@media print {
.invoice2
{
border: initial;
border-radius: initial;
width: 21cm;
height: 29.7cm;
/*min-height: initial;*/
box-shadow: initial;
background: initial;
margin: 0;
overflow: hidden;
}
.not_last_page
{
page-break-after: always;
}
.not_for_print
{
visibility: hidden;
}
}
Not sure if anyone can help. The problem seems to be a weird one
I thought I’d ask anyway
Thanks in advance
OM