PHP Classes

rotate

Recommend this page to a friend!

      HTML Bar Codes  >  All threads  >  rotate  >  (Un) Subscribe thread alerts  
Subject:rotate
Summary:Rotate the barcode 90degrees
Messages:4
Author:Quintin van Straaten
Date:2009-12-03 14:10:33
Update:2009-12-04 14:54:08
 

  1. rotate   Reply   Report abuse  
Picture of Quintin van Straaten Quintin van Straaten - 2009-12-03 14:10:33
Hi there

is there a way to rotate the barcode 90degrees, my lable printer only prints vertical and not horizontal?

Regards
Q

  2. Re: rotate   Reply   Report abuse  
Picture of Mark W Ryan Mark W Ryan - 2009-12-03 21:15:51 - In reply to message 1 from Quintin van Straaten
create a new sub-class"

Modify it to use border-bottom instead of border-left and constrain the width insted of the height


  3. Re: rotate   Reply   Report abuse  
Picture of Quintin van Straaten Quintin van Straaten - 2009-12-04 07:06:36 - In reply to message 2 from Mark W Ryan
where must i create the new sub?

must i do the height to with in the

<style>
.barcode {
border:5px solid white;
background:white;
width:{$width}px;
text-align:center;
{$this->divStyle}
}
.ns{
border-left:{$this->narrow}px solid white;
height:{$this->height};
}
.nb{
border-left:{$this->narrow}px solid black;
height:{$this->height};
}
.ws{
border-left:{$this->wide}px solid white;
height:{$this->height};
}
.wb{
border-left:{$this->wide}px solid black;
height:{$this->height};
}
.qqq{
font-family: Arial, Helvetica, sans-serif;
font-size: 8px;
font-weight: bold;
}

</style>

Sorry, i'm a still a bit new?

  4. Re: rotate   Reply   Report abuse  
Picture of Mark W Ryan Mark W Ryan - 2009-12-04 14:54:08 - In reply to message 3 from Quintin van Straaten
yes, change the style sheet.
You only need to make a copy if you don't need the original.

Does your label printer print web pages?
This class is for printing barcodes on printed web pages.

Does your label printer support barcodes natively?

I use a wasp printer in our warehouse that prints from the db-server (MS-SQL) all i do is spool a file to the printer. It is trigered from the web app. The wasp printer supports barcodes interally