print preview page

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

    print preview page

    I have a web form that has a dozen or so textboxes and drop downs on it and
    several buttons. I have a print button on the form as well, when the user
    clicks the print button I want to take the user to a print preview page with
    only certain textbox (values only) and the associated labels to each
    textbox. I want to the print preview page to be a certain format (table,
    bold labels, etc),
    How can I accomplish this? I've seen the print media, but its not working
    like I want it to.




  • Mark Rae [MVP]

    #2
    Re: print preview page

    "Mike" <whyyoulookinga tme@gmail.comwr ote in message
    news:uAiiU0H$IH A.528@TK2MSFTNG P06.phx.gbl...
    How can I accomplish this?
    Well, at the risk of stating the obvious, create a new page which contains
    only the controls that you want to print and redirect the user to it...
    I've seen the print media, but its not working like I want it to.
    Can you be a bit more detailed...?


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • Mike

      #3
      Re: print preview page

      how can I carry all of the values over for each textbox other then a
      querystring?


      "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
      news:elpR14H$IH A.1452@TK2MSFTN GP02.phx.gbl...
      "Mike" <whyyoulookinga tme@gmail.comwr ote in message
      news:uAiiU0H$IH A.528@TK2MSFTNG P06.phx.gbl...
      >
      >How can I accomplish this?
      >
      Well, at the risk of stating the obvious, create a new page which contains
      only the controls that you want to print and redirect the user to it...
      >
      >I've seen the print media, but its not working like I want it to.
      >
      Can you be a bit more detailed...?
      >
      >
      --
      Mark Rae
      ASP.NET MVP
      http://www.markrae.net

      Comment

      • Mark Rae [MVP]

        #4
        Re: print preview page

        "Mike" <whyyoulookinga tme@gmail.comwr ote in message
        news:ut01m7H$IH A.984@TK2MSFTNG P06.phx.gbl...

        [top-posting corrected]
        >>How can I accomplish this?
        >>
        >Well, at the risk of stating the obvious, create a new page which
        >contains only the controls that you want to print and redirect the user
        >to it...
        >
        How can I carry all of the values over for each textbox other then a
        querystring?
        Session.

        Database

        Open a new browser window and use window.opener:
        JavaScript is a programming language that is primarily used to create interactive and dynamic website content. It can be used to manipulate the Document Object Model (DOM) in a web page, making it a popular choice for creating dynamic user interfaces and web applications.



        --
        Mark Rae
        ASP.NET MVP


        Comment

        • Mike

          #5
          Re: print preview page

          I would rather keep it on the client side if possible since its a data entry
          form only and no db is involved with it.


          "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
          news:%23CvAuAI$ IHA.3396@TK2MSF TNGP03.phx.gbl. ..
          "Mike" <whyyoulookinga tme@gmail.comwr ote in message
          news:ut01m7H$IH A.984@TK2MSFTNG P06.phx.gbl...
          >
          [top-posting corrected]
          >
          >>>How can I accomplish this?
          >>>
          >>Well, at the risk of stating the obvious, create a new page which
          >>contains only the controls that you want to print and redirect the user
          >>to it...
          >>
          >How can I carry all of the values over for each textbox other then a
          >querystring?
          >
          Session.
          >
          Database
          >
          Open a new browser window and use window.opener:
          JavaScript is a programming language that is primarily used to create interactive and dynamic website content. It can be used to manipulate the Document Object Model (DOM) in a web page, making it a popular choice for creating dynamic user interfaces and web applications.

          >
          >
          --
          Mark Rae
          ASP.NET MVP
          http://www.markrae.net

          Comment

          • Mark Rae [MVP]

            #6
            Re: print preview page

            "Mike" <whyyoulookinga tme@gmail.comwr ote in message
            news:updtrJI$IH A.4380@TK2MSFTN GP02.phx.gbl...

            [top-posting corrected again]
            >>>>How can I accomplish this?
            >>>>
            >>>Well, at the risk of stating the obvious, create a new page which
            >>>contains only the controls that you want to print and redirect the user
            >>>to it...
            >>>
            >>How can I carry all of the values over for each textbox other then a
            >>querystring ?
            >>
            >Session.
            >>
            >Database
            >>
            >Open a new browser window and use window.opener:
            >http://www.webreference.com/js/tutorial1/opener.html
            >
            >I would rather keep it on the client side if possible since its a data
            >entry form only and no db is involved with it.
            So open a new browser window and use window.opener:
            JavaScript is a programming language that is primarily used to create interactive and dynamic website content. It can be used to manipulate the Document Object Model (DOM) in a web page, making it a popular choice for creating dynamic user interfaces and web applications.



            --
            Mark Rae
            ASP.NET MVP


            Comment

            • darrel

              #7
              Re: print preview page

              I would rather keep it on the client side if possible since its a data
              entry
              form only and no db is involved with it.
              Why would they need to print a data entry form?

              -Darrel

              Comment

              Working...