Vertical Label switches sides when moved to Host machine

Posted on 2011-10-13
Last Modified: 2012-05-12

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" "">

<html xmlns="">
<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

Question by:paulpp
    LVL 9

    Accepted 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;">
    LVL 2

    Author Comment


    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.
    LVL 2

    Author Comment

    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.
    LVL 2

    Author Closing Comment

    The answer was different, but the user helped me get to where I needed to be.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Zoom web page in 2 23
    Help file 1 28 2015 web application Digital Signatures 2 27
    SQL Server 2008 Error 7 35
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now