[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Vertical Label switches sides when moved to Host machine


I am using VWD Express 2010, and IIS 6.1.
I have written a site for our intranet in ASP.NET which creates a vertcial label with a barcode in it, and some text.  The problem I have that is on the development machine the label displays properly, on the left hand side of the page vertcailly.

When I publish the site to the host sever, it still works fine if I call the page from localhost, however if I go to another machine on our network and access the site, the lable prints on the right hand side of the screen.  This will not work because we are using a lable printer.

I have attached the HTML of the page, and 2 pictures showing the results.  The only thing going on server side is the assignment of values to the labels.  Thank you in advance.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="print.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

<body onload="window.print();window.close()">
<div style="writing-mode:tb-rl;">

    <form id="form1" runat="server">
                <asp:Label ID="barcodeLbl" runat="server" Font-Size="30pt" 
                    style="font-family: 'Free 3 of 9'"></asp:Label>
            <br />
                <asp:Label ID="partIdLbl" runat="server" Font-Size="12pt" Text="Label"></asp:Label>


Open in new window

  • 3
1 Solution

not sure if you checking them in same screen resolution...

the Part ID text is also broken in the image where it is right aligned..

try specifying the align property for the div

<div style="writing-mode:tb-rl;align="left;">
paulppAuthor Commented:

Thank you for the suggestion.  I tried it and it did not work.  I even moved the style and align into the actual label tag, and that did nothing.

As far as resolution, all resolutions are the same, I am running it on the same machine, if enter localhost in IE, it works fine, but if I enter the computername (how others will access it ) "WS00??" on the same computer with the same IE it is on the other side.  Any help is appreciated.
paulppAuthor Commented:
I solved the problem by moving the style="writing-mode:tb-rl;" which was making the text vertical into a <span> tag.  

I don't know why that worked, but it worked.  I will award you points for trying to help.  Thank you.
paulppAuthor Commented:
The answer was different, but the user helped me get to where I needed to be.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now