Rotate HTML output?

liunx

Guest
I need to rotate my output 90 degrees clockwise or counter-clockwise to get the landscape effect. Selecting a landscape page layout won't work with the setup we have (we're trying to print barcode's on a Zebra printer). Is there any way to rotate the barcode font via the html so the barcode is up-down rather than right-left? Thanks for the help!<!--content-->OMG<br />
<br />
try <!-- w --><a class="postlink" href="http://www.icantfigureoutprintingforums.com">www.icantfigureoutprintingforums.com</a><!-- w --><br />
<br />
HAHA ROFLOL<!--content-->is the bar code a graphic or are you doing it straight html?<br />
<br />
if straight html you could put <br> tags after every line.<!--content-->We're using 3of9 Barcode font, so I don't think <br> will work.<!--content-->what about making the font size smaller?<!--content-->I think (and I use that term very loosely) that it might be possible in XML, but stuffed if I know how it's done.<br />
<br />
However, after a little judicious use of Mr. Google and his Mighty Algorithms (don't miss their latest CD "Full Body Cavity Search!") this:<text font-family="serif" font-size=" 12pt" fill="black" x="0" y="0"<br />
transform="rotate(-90) translate(-100, 180) scale(1.5, 1)"><br />
Your text here.<br />
</text> might help. It's from <!-- m --><a class="postlink" href="http://www.nwfusion.com/columnists/2001/0611gearhead.html">http://www.nwfusion.com/columnists/2001 ... rhead.html</a><!-- m --> and obviously you have to change the code to suit your circumstances.<br />
<br />
You'll probably need the appropriate DTD which according to the above article is:<?xml version="1.0" encoding="iso-8859-1"?><br />
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 <br />
Stylable//EN" "<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.w3.org/TR/2000/03/WD-SVG-<br />
20000303/DTD/svg-20000303-stylable.dtd"><br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-">http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-</a><!-- m --><br />
20000303-stylable.dtd</A>"><br />
<br />
Mind you, I haven't tested this (nor read the article in full) and it mightn't be a solution at all. Then again, ya never know, I might actually have given useful information - for once. :)<br />
<br />
For both our sakes, I hope this helps.<br />
<br />
Neil<!--content-->Try this, out of Redmond:<br />
<br />
<html><br />
<head><br />
</head><br />
<body bgcolor="#c0c0c0"><br />
<script type="text/javascript" language="JavaScript"><br />
<br />
function spin90() {<br />
var i = 0;<br />
i = ++i % 4;<br />
if (!document.all.aDiv.style.filter) {<br />
document.all.aDiv.style.filter = <br />
'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + i + ')';<br />
} else {<br />
document.all.aDiv.filters.item('DXImageTransform.Microsoft.BasicImage').Rotation = i;<br />
}<br />
}<br />
<br />
</script><br />
<br />
<form><input type="button" value="rotate by 90 deg" onclick="spin90()"></form><br />
<br><br><div align="center"><br />
<div id="aDiv" style="width:100px;font-size:66px;background:ivory;border:3px double;"><br />
|<b>|</b>||<b>|</b><b>||</b><b>||</b><b>||</div><br />
</div><br />
</body><br />
</html><br />
<br />
<br />
(wish I'd thought of it)---<br />
<!-- m --><a class="postlink" href="http://www.faqts.com/knowledge_base/view.phtml/aid/9250">http://www.faqts.com/knowledge_base/view.phtml/aid/9250</a><!-- m --><!--content-->_mrkite,<br />
your code worked perfectly, except for one thing, when I try to print, it reverts back to the normal orientation. Is there anything i can do to avoid this?<!--content-->Maybe this question is not relevant, but why are you printing barcodes on an HTML page? Does that actually work? Can a bar code reader read the bar code? <br />
<br />
Kevin<!--content-->Our inventory system is internet based, and we print our packing labels from it (on a Zebra printer). The bar code reader has no problem with HTML barcodes but you have to have "3 of 9" font installed on the PC your printing from.<br />
<br />
One of the places we ship to requested a specific format for these labels, this format requires us to print one of the barcodes vertically.<!--content-->OK, that is very interesting. Thanks for answering. <br />
<br />
Kevin<!--content-->
 
Back
Top