How to print different records separately using ASP.NET?

Last post 11-29-2006 10:41 AM by emmav. 1 replies.

Sort Posts:

  • How to print different records separately using ASP.NET?

    11-29-2006, 1:20 AM
    • Loading...
    • zeyansoft
    • Joined on 11-29-2006, 6:00 AM
    • Posts 1
    Hello everyone, we are developing a student enroll system using ASP.NET 2.0. To print student personal information, we design a page that teachers can select multiple student IDs and then click the "Print" button to print all selected student personal information at one time. Each student personal info should be printed separately on to different papers, and teachers should using the clientside printer. The student personal info was selected from backend SQL Server database by StudentID. This has confused us for a long time. Can anyone provide an suugestion? Thank you!
  • Re: How to print different records separately using ASP.NET?

    11-29-2006, 10:41 AM
    • Loading...
    • emmav
    • Joined on 11-24-2006, 9:40 AM
    • Posts 7

    Not entirely sure what you're asking, but:

    Look into printer specific stylesheets: http://www.w3.org/TR/REC-CSS2/page.html After each student record put:

    <p style="page-break-after: always"> </p>
      That should force it to go to next page, assuming the browser supports it that is
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter