Printing HTML Text

Dan Friedman dan at clearvisiontech.com
Thu Dec 7 16:38:11 EST 2017


Hello!

I have some formatted text in a field.  If I print it on a Mac, it’s perfect.  If I print it on a windows computer (Win 7 or 10), I get VERY strange results.  I have tried multiple computers with multiple printers.  All with the same results.   I get these large black bars.  And on some printers half the entire page is black!   Any thoughts or experiences with this?

This is the HTMLText I am trying to print.

<p>Student: <b>John D. Doe</b></p>
<p>Gradebook Data as of: Thursday, December 7, 2017 - 1:09 PM</p>
<p></p>
<p>Teacher: <b>Mr. Green</b></p>
<p spacebelow="6">Subject: <b>Writing</b></p>
<p align="left" leftindent="0" rightindent="0" tabstops="85,115,320,450,540,540" bgcolor="230,230,230" borderwidth="1" padding="2" hgrid vgrid><font size="10">Date     Term   Entry    Topic   Grade</font></p>
<p spacebelow="8" align="left" leftindent="0" rightindent="0" tabstops="85,115,320,450,540,540" bgcolor="255,255,255" borderwidth="1" padding="2" hgrid vgrid><font size="10">9/5/2017        1            EXTRA  Test     3 / 52</font></p>
<p align="right" bgcolor="0" >Total:<b> N/A</b></p><p></p>
<p spacebelow="6">Subject: <b>Reading</b></p>
<p align="left" leftindent="0" rightindent="0" tabstops="85,115,320,450,540,540" bgcolor="230,230,230" borderwidth="1" padding="2" hgrid vgrid><font size="10">Date     Term   Entry    Topic   Grade</font></p>
<p spacebelow="8" align="left" leftindent="0" rightindent="0" tabstops="85,115,320,450,540,540" bgcolor="255,255,255" borderwidth="1" padding="2" hgrid vgrid><font size="10">9/27/2017      1            Test44 Test     18 / 19</font></p>
<p align="right" bgcolor="0" >Total:<b> 95%</b></p><p></p>

I have the stack set to the standard letter paper size (612x792).
The field has magins of 36, and is set to the same rect as the stack

Then I do this:

set the printMargins to 0,0,0,0
print this card

I’ve also tried this with the exact same results:

revPrintField the name of field "theField"

Anyone with some thoughts?

Thank you in advance,
-Dan


More information about the use-livecode mailing list