|
01.11.2004, 14:08 | #1 |
Участник
|
Nado sdelat' report v 2 exempljarah na 1 A4 strancie (portrait)
dumaju mnogi znajut, sto est'takie dokumenti, kotorie potom rezhutsja po-polam. tak vot i men nado-bi sdelat etu "linjuju otreze". vrode sam report poluzhajetsja, tolko vot vtoraja chast/kopija idet srazu zhe za pervoj,... a nado bi stob eto vse nachinalos's 50% ot A4 lista. chast' reporta dinamicheskaja, i poetomu tam niche statishekogo nevicheslish :/ + pojavljaetsja problema, kogda 1 chast zanimaet > 50 % ot lista Mozet u kogo nit' est' kakie misli na etot schet ? pasiba. |
|
01.11.2004, 15:58 | #2 |
Участник
|
tak nu vrode sam resil etu problemku,
vsja fishka zakljuchaetsja vot v chem v psolednej sekcii/body whatever, delaem cikl <div class='XPPtop'>X++</div><div class='XPP'> [color=:blue]if[/color] ( !iPrintedCnt ) [color=:blue]while[/color] ( yMiddle > element.currentYmm100() ) { [color=:green]// execute empty section [/color]} [color=:green]// execute "cut line" section[/color]</div> v konce vot shto u menja poluchilos.... <div class='XPPtop'>X++</div><div class='XPP'> [color=:blue]public[/color] [color=:blue]void[/color] executeSection() { [color=:blue]int[/color] yMiddle = element.design().printerPageHeight() / 2; ; [color=:blue]super[/color](); [color=:blue]if[/color] ( ! iPrintedCnt ) { [color=:blue]while[/color] ( yMiddle > element.currentYmm100() ) { Section5mm.executeSection(); } SectionDashedLine.executeSection(); Section5mm.executeSection(); } }</div> PS: esli budet vremja, mozet sdelaju malenkij tutor... |
|