daffaa08 / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

HTML Partial Print #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.printHTML code
2.
3.

What is the expected output? What do you see instead?
I see partial html print. If I print anything (even when I set small size to 
html elements) Prints only the 3/4 part of paper and the rest nothing happens

What version of the product are you using? On what operating system?
QZ Print Plugin 1.7.0 on Windows 8

Please provide any additional information below.
This is my code:
<html>
<head>
    <style type="text/css">
        body
        {
            margin-top:0px;
            margin-left:0px;
        }
        body, td
        {
            background-color: #ffffff;
            color: #000000;
            font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace;
            font-size: 6pt;
        }
    </style>
</head>
<body>
    <table border="0" width="200px">
        <tr>
            <td>
                <table border="0" width="100%">
                    <tr>
                        <td colspan="2" align="center">LISTADO DE SOLICITUDES DE MATERIALES</td>
                    </tr>
                    <tr>
                        <td align="left">Region: 30001 - CLN</td>
                        <td align="right">09/12/2013</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="border-top:thin solid black;"></td>
                    </tr>
                </table>
                <table border="0" width="100%">
                    <tr>
                        <td>SM</td>
                        <td>EDIFICIO</td>
                        <td>FECHA</td>
                        <td>ST</td>
                        <td>MMTO</td>
                        <td>ESTATUS</td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>00002 - ANGEL FLORES</td>
                        <td>04/12/2013</td>
                        <td>3</td>
                        <td>CORRECT</td>
                        <td>SALDADA</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>00003 - OBREGON</td>
                        <td>04/12/2013</td>
                        <td>9</td>
                        <td>PREVENT</td>
                        <td>PENDIENTE</td>
                    </tr>
                    <tr>
                        <td>7</td>
                        <td>00005 - HORIZONTES</td>
                        <td>05/12/2013</td>
                        <td>5</td>
                        <td>CORRECT</td>
                        <td>CANCELADA</td>
                    </tr>
                    <tr>
                        <td>10</td>
                        <td>00002 - ANGEL FLORES</td>
                        <td>06/12/2013</td>
                        <td>13</td>
                        <td>PREVENT</td>
                        <td>PRE-SALD</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>

Original issue reported on code.google.com by RobertM0...@gmail.com on 9 Dec 2013 at 5:38

GoogleCodeExporter commented 9 years ago
My printer is a thermal printer Bixolon SRP 350 Plus

Original comment by RobertM0...@gmail.com on 9 Dec 2013 at 5:40

GoogleCodeExporter commented 9 years ago
Print html is very limited (doesn't support CSS, etc).

I'm not sure if it even supports nested tables.

The html5 printing is recommended instead, which can be found using the "Print 
Current Page" button.

This HTML5 feature is still being worked on, so your feedback is appreciated.

-Tres

Original comment by tres.fin...@gmail.com on 9 Dec 2013 at 9:18

GoogleCodeExporter commented 9 years ago
@Robert,

For POS Printers, I strongly suggest using ESC/POS formatted syntax along with 
the Raw Printing capabilities instead of the HTML printing features.

http://qzindustries.com/WhatIsRawPrinting

-Tres

Original comment by tres.fin...@gmail.com on 11 Dec 2013 at 2:12

GoogleCodeExporter commented 9 years ago
Thanks I Tried using ESC/POS commands but the problem is that I need to print 6 
columns table and very well distributed and using Raw commands its too 
complicated.

Original comment by RobertM0...@gmail.com on 11 Dec 2013 at 4:30

GoogleCodeExporter commented 9 years ago
I have the same problem. After reading this issue comments i have changed my 
code and removed the css syntax. But even if i do not use css, sometimes 
qzprint does not print the whole page. 

I am printing the same page 100 times. Avg. 4 pages have a problem.

Original comment by okandemi...@gmail.com on 28 Sep 2014 at 1:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I think the problem is related with the Applet JVM memory. Applet's default Xmx 
is 64MB. I have changed my Applet Runtime Settings to this -Xms128m -Xmx128m 

It works for me.

Original comment by okandemi...@gmail.com on 8 Oct 2014 at 12:12

Attachments: