Print Preview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beulajo
    New Member
    • Nov 2009
    • 29

    Print Preview

    I have a webpage which has grid entry with paging, and all the other asp controls,

    I need to print this page for the user with the print preview option.

    What I have done right now is I have used media css class, I have hidden some fields and assigned the whole div into another page where I show a preview of the page and print from there

    The problem I face is, Gridview, I do not want Action template columns (Edit,Delete)to be shown in the preview and IF the the gridview has paging,It is still creating problem of showing the page number... But I need the whole content of the grid
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well if you're doing it in another "page", turn off the paging of the gridview, and hide the EDIT/DELETE columns?

    Comment

    • beulajo
      New Member
      • Nov 2009
      • 29

      #3
      But then I need to show paging in the web page, Once I export the whole day to some other page, I need the data to be sent fully without paging

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        The data is always there, paging is just turned on or off.
        Use the data from the server side code, not whats sitting in the html

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Just turn of paging for the GridView in the print preview page and use your CSS to specify how the data will be displayed when printed.

          -Frinny

          Comment

          • beulajo
            New Member
            • Nov 2009
            • 29

            #6
            Thanks I have found the solution

            Turning of the paging while viewing and refreshing the iframe when the popup
            is closed so that paging is done again in the parent window

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              I'm glad you solved your problem :)

              -Frinny

              Comment

              Working...