|
Subject:
|
page numbering while outputting
|
|
Posted By:
|
agbeltekin
|
Post Date:
|
11/11/2003 4:01:07 AM
|
Hi I have a problem. My English is not good if I make a mistake please forgive me.
I have a list of student list of each class in a school on a web page. some of class have more students which exceeds one page so I have a table which has THEAD property row to give NAME and SURNAME and PAGE NUMBER for each page.
How can I do these things:
I want to show each class list page number from 1 to .... on the screen. And if page is all printed I want to show all Page numbers in THEAD PAGE NUMBER part.
example: :)
I have to class. classA and classB.
classA have 60 student which is 1.5 page and classB have 100 student which is 2.5 page. On the screen the heading part of table must show these.. classA PAGE NUMBER: 1 classB PAGE NUMBER: 2
but on printing since there are 5 page each page must show their own page number
like this:
classA PAGE NUMBER:1 classA PAGE NUMBER:2
classB PAGE NUMBER:3 classB PAGE NUMBER:4 classB PAGE NUMBER:5
sorry for this stupid english explanation and sampling :))))
AGB
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
11/11/2003 5:06:35 AM
|
You don't say how you are creating the table but if 40 records constitute a page then use the css attribute page-break-after on every 40th record. If you were to show an example of the output you want I could help more. Do you want a new table for each page for instance or one long table with breaks?
Joe
--
Joe
|
|
Reply By:
|
agbeltekin
|
Reply Date:
|
11/12/2003 6:57:14 AM
|
there are two repeater first one is repeating the classes and the second one is the showing the students of the class.
there is a page break between two class list.
So the head of the table (which is created by the second repeater)is Student number, name ans surname and a one cell writing the PAGE NUMBER. (Table heading part) but there may be too many student in the list. On the output I can see the correct list but problem occuring in printing part.
Let's say 70 student. Assuming that there are 40 student on a page. So 2 page is needed for this class list. While printing this pages the PAGE NUMBER part of table head part must output the correct numbers.
One page on the screen(PAGE NUMBER : 1 ) and two page while printing(PAGE NUMBER : 1, PAGE NUMBER : 2 (other page)).
Please help me...
AGB
|
|
Reply By:
|
stalker
|
Reply Date:
|
11/12/2003 10:10:19 PM
|
xiiii
I don't know if that can be done.. I think you want diferent behaviours of the table at the same time.
When printing you want one behaviour when on screen you want another behaviour..
hope somebody can help you.. I cant! :(
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
11/13/2003 5:31:42 AM
|
It can be done using css, particularly the @media designator which can be set to screen or print. You define two classes for the different behaviours. When you say repeaters do you mean you're using asp.net?
--
Joe
|
|
Reply By:
|
agbeltekin
|
Reply Date:
|
11/13/2003 11:03:57 AM
|
Yes I am using ASP.NET with visual Basic But I think this page numbering must be implemeneted with JavaScript
AGB
|