windows.print(), prints extra info

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PW

    windows.print(), prints extra info


    I'm using the windows.print() function to print a customers receipts from an
    ASP. I've created a button to do it, like this ...


    <td align=left>
    <BUTTON TYPE=BUTTON
    onClick="window .print()">&nbsp &nbspPRINT&nbsp &nbsp</BUTTON>
    </td>


    Unfortunately I get some additional lines printed that I don't want.

    The line says ...http://localhost/pos_system/tran_sales.asp across the
    bottom of the receipt. Obviously its my ASP name but how can I remove it ?



  • Ray at

    #2
    Re: windows.print() , prints extra info

    This is a browser setting. It is not anything that you can control with ASP
    or even client-side scripting for that matter. In IE, it's File--Page
    Setup---Footer

    Ray at home

    "PW" <pwa@NObigSPAMp ond.net.au> wrote in message
    news:eLHCn4TOEH A.2952@TK2MSFTN GP12.phx.gbl...[color=blue]
    >
    > I'm using the windows.print() function to print a customers receipts from[/color]
    an[color=blue]
    > ASP. I've created a button to do it, like this ...
    >
    >
    > <td align=left>
    > <BUTTON TYPE=BUTTON
    > onClick="window .print()">&nbsp &nbspPRINT&nbsp &nbsp</BUTTON>
    > </td>
    >
    >
    > Unfortunately I get some additional lines printed that I don't want.
    >
    > The line says ...http://localhost/pos_system/tran_sales.asp across the
    > bottom of the receipt. Obviously its my ASP name but how can I remove it[/color]
    ?[color=blue]
    >
    >
    >[/color]


    Comment

    • PW

      #3
      Re: windows.print() , prints extra info


      "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
      message news:uopwK$UOEH A.2944@TK2MSFTN GP10.phx.gbl...[color=blue]
      > This is a browser setting. It is not anything that you can control with[/color]
      ASP[color=blue]
      > or even client-side scripting for that matter. In IE, it's File--Page
      > Setup---Footer[/color]


      DOH! Thanks mate, thats fixed it.



      Comment

      • Mark Schupp

        #4
        Re: windows.print() , prints extra info

        You cannot do that from ASP (or client-side code either as far as I know).
        The user will have to change their page setup ( for IE, see File-Page
        Setup... ).

        --
        Mark Schupp
        Head of Development
        Integrity eLearning



        "PW" <pwa@NObigSPAMp ond.net.au> wrote in message
        news:eLHCn4TOEH A.2952@TK2MSFTN GP12.phx.gbl...[color=blue]
        >
        > I'm using the windows.print() function to print a customers receipts from[/color]
        an[color=blue]
        > ASP. I've created a button to do it, like this ...
        >
        >
        > <td align=left>
        > <BUTTON TYPE=BUTTON
        > onClick="window .print()">&nbsp &nbspPRINT&nbsp &nbsp</BUTTON>
        > </td>
        >
        >
        > Unfortunately I get some additional lines printed that I don't want.
        >
        > The line says ...http://localhost/pos_system/tran_sales.asp across the
        > bottom of the receipt. Obviously its my ASP name but how can I remove it[/color]
        ?[color=blue]
        >
        >
        >[/color]


        Comment

        Working...