Print - Size of Page

Discussion in 'ASP General' started by Mangler, Dec 20, 2006.

  1. Mangler

    Mangler Guest

    This is probaly a dumb question but I cant find the answer. I need to
    print some data to a label from a web page. The label is 2.25" x 1.25"
    and when the page is printed the printer spits out 2 pages. I assume
    the page can be sized but I dont know how. Can anyone give an example
    or refer me to a place where I can get some help? Below is my page, its
    displays a barcode and some info above and below it.

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <title>Barcode Breakdown</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    />
    <script language="javascript1.2">

    function autoClose() {
    setTimeout("window.close()", .2 * 1000) // 30 is seconds



    }


    </script>
    </head>


    <body onLoad="autoClose()">

    <p>
    <%
    RMABarCode = Request.QueryString("rma")
    response.write Request.QueryString("phmodel") & "<div><img
    src='barcode.asp?code=" & RMABarCode &
    "&height=25&width=1&mode=code39'></div>" & Request.QueryString("rma")
    & "-" & Request.QueryString("idlot")
    %>
    </p>

    <script language=JScript>
    window.print();
    </script>
    <p>&nbsp; </p>
    </body>
    </html>
     
    Mangler, Dec 20, 2006
    #1
    1. Advertisements

  2. Mangler

    Mike Brind Guest

    "Mangler" <> wrote in message
    news:...
    > This is probaly a dumb question but I cant find the answer. I need to
    > print some data to a label from a web page. The label is 2.25" x 1.25"
    > and when the page is printed the printer spits out 2 pages. I assume
    > the page can be sized but I dont know how. Can anyone give an example
    > or refer me to a place where I can get some help?


    Try a CSS group for advice on sizing.

    comp.infosystems.www.authoring.stylesheets

    --
    Mike Brind
     
    Mike Brind, Dec 26, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bernard Segonnes

    Print and print overview and current page

    Bernard Segonnes, Nov 4, 2004, in forum: Java
    Replies:
    0
    Views:
    560
    Bernard Segonnes
    Nov 4, 2004
  2. Sam
    Replies:
    1
    Views:
    829
    seigo
    Nov 10, 2006
  3. Ben
    Replies:
    5
    Views:
    5,605
  4. keto
    Replies:
    0
    Views:
    1,359
  5. Jason Cavett

    Preferred Size, Minimum Size, Size

    Jason Cavett, May 23, 2008, in forum: Java
    Replies:
    5
    Views:
    13,427
    Michael Jung
    May 25, 2008
  6. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    634
    David Cournapeau
    Dec 30, 2008
  7. page size in print page

    , Jan 13, 2006, in forum: ASP General
    Replies:
    2
    Views:
    208
  8. Pudlik, Szymon
    Replies:
    2
    Views:
    224
    Pudlik, Szymon
    Aug 24, 2005
Loading...