7 Replies Latest reply on May 31, 2018 11:11 AM by Dheeraj vislavath

    Print a HTML page of Varying height

    Dheeraj vislavath

      Hello,

       

      I have receipt where its height is dynamic. Is there a way to print the receipt according to varied height instead of height from printer preferences settings under options section.

       

      Thank you,

      Dheeraj Vislavath

        • Re: Print a HTML page of Varying height
          Robin West

          Hi Dheeraj,

          Unfortunately printing from a web browser's "Print" menu means you are using a print driver to print.  Most print drivers do not allow variable length printing.

          Your best option is to convert the webpage to an image and use something like Browser Print to print it.

            • Re: Print a HTML page of Varying height
              Dheeraj vislavath

              Thank you for recommending Browser print.

               

              I have used the following ZPL

               

              ^XA

              ^MMK

              ^LL506

              ^MNV

              ^KV20,9,0,0,0

              ^FO50,50^A0N,50,50^FDPartial Cut^FS

              ^FO50,150^A0N,50,50^FDPrinting Line 1^FS

              ^FO50,250^A0N,50,50^FDPrinting Line 2^FS

              ^FO50,350^A0N,50,50^FDPrinting Line 3^FS

              ^FO50,450^A0N,50,50^FDPrinting Line 4^FS

              ^FO50,650^A0N,50,50^FDPrinting Line 5^FS

              ^FO50,850^A0N,50,50^FDPrinting Line 6^FS

              ^CN0^PN0

              ^XZ

               

               

              I am able to print only until Printing Line 3, even I used ^MNV to print continuous, variable length. Currently, the print job is stopping when it reaches 506 dots as given in the ^LL command. How to print all the lines ?

               

              Thank you.

                • Re: Print a HTML page of Varying height
                  Robin West

                  Hi Dheeraj,

                  Is your printer a KR403 or is it some other model?  These specific commands will only work if you are using a KR403.  Otherwise you need to set the media to continuous and set the label length for each label.

                  Non-KR403:

                  ^XA
                  ^MNN
                  ^MMT
                  ^LL900
                  ^FO50,50^A0N,50,50^FDPartial Cut^FS
                  ^FO50,150^A0N,50,50^FDPrinting Line 1^FS
                  ^FO50,250^A0N,50,50^FDPrinting Line 2^FS
                  ^FO50,350^A0N,50,50^FDPrinting Line 3^FS
                  ^FO50,450^A0N,50,50^FDPrinting Line 4^FS
                  ^FO50,650^A0N,50,50^FDPrinting Line 5^FS
                  ^FO50,850^A0N,50,50^FDPrinting Line 6^FS
                  ^CN0^PN0
                  ^XZ
                  

                   

                  KR403:

                  ^XA
                  ^MMK
                  ^MNV
                  ^KV20,9,0,0,0
                  ^FO50,50^A0N,50,50^FDPartial Cut^FS
                  ^FO50,150^A0N,50,50^FDPrinting Line 1^FS
                  ^FO50,250^A0N,50,50^FDPrinting Line 2^FS
                  ^FO50,350^A0N,50,50^FDPrinting Line 3^FS
                  ^FO50,450^A0N,50,50^FDPrinting Line 4^FS
                  ^FO50,650^A0N,50,50^FDPrinting Line 5^FS
                  ^FO50,850^A0N,50,50^FDPrinting Line 6^FS
                  ^CN0^PN0
                  ^XZ