You can use PHP to create an image of the rotated text, and then print it. The great thing about images is that it is completely browser independent. There are some solutions (already mentioned in this thread) that work, but are only tested on the last few browsers. This solution does not care about the browser, as long as the browser can print images, it only cares about a server that can support PHP5.
this is what your PHP file looks like (image_gen.php):
<?php // create a 100*100 image $im = imagecreatetruecolor(100, 100); // Write the text $textcolor = imagecolorallocate($im, 0xFF, 0xFF, 0xFF); imagestringup($im, 3, 40, 80, $_GET['text'], $textcolor); header('Content-type: image/png'); // Save the image imagepng($im); imagedestroy($im); ?>
See this link ...
This file accepts text for vertical printing as a get parameter like this:
http://example.com/example.html?text=This+Is+The+Text+To+Be+Printed+Vertically
and returns an image of this text printed vertically. Thus, you can do this in your main HTML file that you want to print:
<img src = "image_gen.php?text=Hello world">
PLEASE NOTE: the values shown in the code example are only examples of values, text and colors, changing them according to your purpose ...
So you paste this image into your HTML file. Now, when you print this image, you should get an image printed as is, i.e. with vertical text ...
Here I took a printout and took a photo to show you that it really works, I know that the text is clearly not visible, but you can understand that it is vertical.

hope this helps ...