cancel
Showing results for 
Search instead for 
Did you mean: 
k1o0
Level 1
2 1 1 0
Message 1 of 2
149
Flag Post

Solved!

ePrint HTML formatting error

HP Recommended
LaserJet Pro 400 color M451dw
Other

We have a LaserJet Pro 400 color M451dw printer that supports printing via email.  According to the documentation HTML emails are supported by this printer.  Each Friday a script in our office sends an HTML email to the staff and also to our printer's email address.  The HTML doesn't have validation errors (checked with the W3C validator) and displays correctly on our email clients (Outlook, Gmail), however the printout contains badly formatted HTML, with a couple of lines incorrectly parsed.

 

Below you can see that a couple of HTML table rows are not parsed and are shown at the top of the table.  The top two circled values should appear in the lower circled spaces.

 

Top two highlighted values should be in lower two spacesTop two highlighted values should be in lower two spacesClose-up of HTML in printoutClose-up of HTML in printout

 

Below is the raw email text file sent via cURL:

From: Database <REDACTED>
Reply-To: Database <REDACTED>
To: REDACTED@hpeprint.com, REDACTED
Subject: Weekend Water
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Mime-version: 1.0

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
</head><body>
Please find below the water table for this weekend.  Any blank spaces must be filled in manually by the respective PILs on the paper copy.  Let us know if they fail to do so. 
 
<table style="width:100%"><tr><th style="padding:5px">Animal</th><th style="padding:5px">Weight % on Friday</th><th style="padding:5px">Sat, 24-Oct-2020</th><th style="padding:5px">Sun, 25-Oct-2020</th></tr><tr><td style="padding:5px">AL038</td><td style="padding:5px">96.51</td><td style="padding:5px">0.77</td><td style="padding:5px">0.77</td></tr><tr><td style="padding:5px">AL039</td><td style="padding:5px">89.80</td><td style="padding:5px">0.89</td><td style="padding:5px">0.89</td></tr><tr><td style="padding:5px">AL040</td><td style="padding:5px">92.31</td><td style="padding:5px">0.87</td><td style="padding:5px">0.87</td></tr><tr><td style="padding:5px">AL041</td><td style="padding:5px">83.08</td><td style="padding:5px">0.80</td><td style="padding:5px">0.80</td></tr><tr><td style="padding:5px">AL042</td><td style="padding:5px">88.98</td><td style="padding:5px">1.11</td><td style="padding:5px">1.11</td></tr><tr><td style="padding:5px">AL043</td><td style="padding:5px">Unknown</td><td style="padding:5px"> </td><td style="padding:5px"> </td></tr><tr><td style="padding:5px">AL044</td><td style="padding:5px">92.78</td><td style="padding:5px">1.08</td><td style="padding:5px">1.08</td></tr><tr><td style="padding:5px">AN014</td><td style="padding:5px">101.05</td><td style="padding:5px">0.82</td><td style="padding:5px">0.82</td></tr><tr><td style="padding:5px">AN017</td><td style="padding:5px">99.01</td><td style="padding:5px">0.85</td><td style="padding:5px">0.85</td></tr><tr><td style="padding:5px">AN018</td><td style="padding:5px">99.43</td><td style="padding:5px">0.75</td><td style="padding:5px">0.75</td></tr><tr><td style="padding:5px">AN019</td><td style="padding:5px">92.86</td><td style="padding:5px">0.78</td><td style="padding:5px">0.78</td></tr><tr><td style="padding:5px">AP083</td><td style="padding:5px">100.00</td><td style="padding:5px">2.00</td><td style="padding:5px">2.00</td></tr><tr><td style="padding:5px">AP084</td><td style="padding:5px">100.00</td><td style="padding:5px">2.00</td><td style="padding:5px">2.00</td></tr><tr><td style="padding:5px">JF012</td><td style="padding:5px">102.70</td><td style="padding:5px">PIL</td><td style="padding:5px">PIL</td></tr><tr><td style="padding:5px">JF013</td><td style="padding:5px">103.11</td><td style="padding:5px">PIL</td><td style="padding:5px">PIL</td></tr><tr><td style="padding:5px">JF014</td><td style="padding:5px">82.64</td><td style="padding:5px">0.77</td><td style="padding:5px">0.77</td></tr><tr><td style="padding:5px">JF015</td><td style="padding:5px">85.84</td><td style="padding:5px">0.80</td><td style="padding:5px">0.80</td></tr><tr><td style="padding:5px">JF016</td><td style="padding:5px">87.21</td><td style="padding:5px">0.80</td><td style="padding:5px">0.80</td></tr><tr><td style="padding:5px">KS038</td><td style="padding:5px">Unknown</td><td style="padding:5px"> </td><td style="padding:5px"> </td></tr><tr><td style="padding:5px">KS039</td><td style="padding:5px">Unknown</td><td style="padding:5px"> </td><td style="padding:5px"> </td></tr><tr><td style="padding:5px">KS040</td><td style="padding:5px">88.85</td><td style="padding:5px">0.97</td><td style="padding:5px">0.97</td></tr><tr><td style="padding:5px">KS041</td><td style="padding:5px">96.46</td><td style="padding:5px">1.03</td><td style="padding:5px">1.03</td></tr><tr><td style="padding:5px">KS042</td><td style="padding:5px">96.22</td><td style="padding:5px">0.97</td><td style="padding:5px">0.97</td></tr><tr><td style="padding:5px">KS043</td><td style="padding:5px">99.19</td><td style="padding:5px">1.03</td><td style="padding:5px">1.03</td></tr><tr><td style="padding:5px">KS044</td><td style="padding:5px">100.00</td><td style="padding:5px">1.20</td><td style="padding:5px">1.00</td></tr><tr><td style="padding:5px">KS045</td><td style="padding:5px">100.00</td><td style="padding:5px">0.98</td><td style="padding:5px">0.98</td></tr><tr><td style="padding:5px">KS046</td><td style="padding:5px">96.75</td><td style="padding:5px">1.00</td><td style="padding:5px">1.00</td></tr><tr><td style="padding:5px">KS047</td><td style="padding:5px">102.46</td><td style="padding:5px">1.00</td><td style="padding:5px">1.00</td></tr><tr><td style="padding:5px">LEW038</td><td style="padding:5px">94.42</td><td style="padding:5px">0.84</td><td style="padding:5px">0.84</td></tr><tr><td style="padding:5px">LEW042</td><td style="padding:5px">91.12</td><td style="padding:5px">0.83</td><td style="padding:5px">0.83</td></tr></table>
</body></html>

 

I've tried re-sending as utf-8 and without the meta tag but get the same result.  Similar emails have worked in the past.

1 ACCEPTED SOLUTION

Accepted Solutions
k1o0
Author
Level 1
2 1 1 0
Message 2 of 2
Flag Post
HP Recommended

We found the solution: the email line length was too long for the printer.  We've fixed this now.

View solution in original post

Was this reply helpful? Yes No
1 REPLY 1
k1o0
Author
Level 1
2 1 1 0
Message 2 of 2
Flag Post
HP Recommended

We found the solution: the email line length was too long for the printer.  We've fixed this now.

View solution in original post

Was this reply helpful? Yes No
Warning Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation