PDA

View Full Version : i can't control the total of pages for my report!So please help me ok???


Why liew
08-05-2005, 12:06 PM
Hi i am the student and now doing my project and facing the problem when generate the report from my system.The problem is i can't control the total of pages for my report.So u all can help me and give me some sample of coding!Tq very much!

What i mean is that each pages of report have the header and footer like bellow:-

NYOK LAN GARMENTS SDN BHD(header)

CUTTING SHEET(header)

Cutting Sheet No :- MAYB098 Rev :- 0
Buyer :- FNL Order No :- 2
Group :- COCONUT Order Date :- 25/06/2005
Prod Code :- W119-PK Cutting Date :- 07/07/2005
Size Qty Delivery Date :- 05/05/2005
-32 20
-32 32
Raw Material Description Masurement
Mark Spread Cut Bundle Lgth Ply

--------------------------------------------------------------------------------
(record)
1) 01521-0101 Block tricat-Black
P:W119PK RJ:0.06 P:W119PK RJ:0.06 P:W119PK RJ:0.03 P:W119PK RJ:0.06
3776006M 3776006S 3776006C 3776006B

--------------------------------------------------------------------------------

2) PFOAM-0103 Cup Foam(NCB 18mm)
P:W119PK RJ:0.04 P:W119PK RJ:0.03 P:W119PK RJ:0.04
3776008M 3776008S 3776008B

--------------------------------------------------------------------------------

NYOK LAN GARMENTS SDN BHD(header)

CUTTING SHEET(header)

Cutting Sheet No :- MAYB097 Rev :- 0
Buyer :- FNL Order No :- 1
Group :- COCONUT Order Date :- 25/06/2005
Prod Code :- W119-BK Cutting Date :- 07/07/2005
Size Qty Delivery Date :- 05/05/2005
-32 8
-34 8
-36 16
Raw Material Description Masurement
Mark Spread Cut Bundle Lgth Ply

--------------------------------------------------------------------------------
(record)
1) 1305B-0101 01305 Polyester
P:W119BK RJ:0.2 P:W119BK RJ:0.03 P:W119BK RJ:0.05
3775001M 3775001C 3775001B

--------------------------------------------------------------------------------

2) 01521-0101 Block tricat-Black
P:W119BK RJ:0.05 P:W119BK RJ:0.2
3775002S 3775002C

--------------------------------------------------------------------------------
So i want this two reports can print on two pages,that mean the first report on page 1 and the second report on page 2.So when i before print it, i also can see that in two seprate pages through print preview!

So do u can help me to do that???

thanks for your helping first!
:confused:

glenngv
08-05-2005, 12:43 PM
Specifying page breaks for printing using CSS (http://www.javascriptkit.com/dhtmltutors/pagebreak.shtml)