Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Printing a GridView that is longer than one page.

Printing a GridView that is longer than one page.

Scheduled Pinned Locked Moved ASP.NET
cssjsonquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    boy pockets
    wrote on last edited by
    #1

    I am trying to print a GridView. Everything is fine for, say, 5 records. But when the number of records makes the grid view longer than the page then the trouble starts. It will still try and print the correct number of pages (in the case of 50 records, 2 pages), but all pages are blank except for when the first - where about 25 records will be displayed. It truncates the rest of the records. This happens in both FF and IE. Does anyone have any ideas? thanks.

    E B 2 Replies Last reply
    0
    • B boy pockets

      I am trying to print a GridView. Everything is fine for, say, 5 records. But when the number of records makes the grid view longer than the page then the trouble starts. It will still try and print the correct number of pages (in the case of 50 records, 2 pages), but all pages are blank except for when the first - where about 25 records will be displayed. It truncates the rest of the records. This happens in both FF and IE. Does anyone have any ideas? thanks.

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Check this out: http://www.codeproject.com/KB/custom-controls/GridViewPrinting.aspx

      We are not a Code Charity

      1 Reply Last reply
      0
      • B boy pockets

        I am trying to print a GridView. Everything is fine for, say, 5 records. But when the number of records makes the grid view longer than the page then the trouble starts. It will still try and print the correct number of pages (in the case of 50 records, 2 pages), but all pages are blank except for when the first - where about 25 records will be displayed. It truncates the rest of the records. This happens in both FF and IE. Does anyone have any ideas? thanks.

        B Offline
        B Offline
        boy pockets
        wrote on last edited by
        #3

        The real problem was due to this construction: <asp:Panel ... > <asp:GridView ...> ... </asp:GridView> </asp:Panel> The properties that were causing problems were in the Panel: overflow and scrollbars. Settting overflow to visible and scrollbars to none fixed my problems. *happy*

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups