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. print problem

print problem

Scheduled Pinned Locked Moved ASP.NET
helpquestion
2 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.
  • H Offline
    H Offline
    hakanaktan
    wrote on last edited by
    #1

    I have a report page with 2 tables.I want to print the second table at 2. page because 1.table may become longer and pushes the second table. I read articles about this at codeproject and other sites but it did not work at my aspx page. Do i miss something? Thanx in advance I tried : <style media="print">.pagebreaker { page-break-before: always } </style> <table class="pagebreaker"> And <style> @media="print" { .pagebreaker { page-break-before: always } } </style> --junior coder--

    S 1 Reply Last reply
    0
    • H hakanaktan

      I have a report page with 2 tables.I want to print the second table at 2. page because 1.table may become longer and pushes the second table. I read articles about this at codeproject and other sites but it did not work at my aspx page. Do i miss something? Thanx in advance I tried : <style media="print">.pagebreaker { page-break-before: always } </style> <table class="pagebreaker"> And <style> @media="print" { .pagebreaker { page-break-before: always } } </style> --junior coder--

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      do this.. cereate a separate css file without mentioning any media.. define a class in that file e.g. .pbrkbefore { page-break-before: always; } then link that file in header section of your main file with tag.. insert a parent table in your page..

      ........... ........... reason for parent and child table is that this way explorer insert the page break at ezxact location.. without this it might not give you correct result.. Salim Akbar

      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