Wouldn't it be nice to finally get rid of the dot-matrix reporting
thinking (where you had a fixed character width & height) & issue a
simple page-feed at the right moment - not forgetting page & section
headers/footers mind you....



Pieter





-----Opprinnelig melding-----
Fra: Chwaszczewski, Jim [mailto:[EMAIL PROTECTED]
Sendt: 5. oktober 2004 16:12
Til: Axapta Dev (Yahoo)
Emne: [development-axapta] Filling Out a Report Page




When printing a report, rather than counting lines to fill out a page,
I've dynamically changed the height of a programmable section to fill
out a page before printing totals located at the bottom of the page.  It
works well when you have lines on either side.  I've used mm to specify
heights on the report objects.  Depending on you printer, the lines are
straighter.  Also, you only print one line to fill out the page.  Here's
a snippet of code from the report's fetch method...

            // print detail lines
            ...
            // when done with detail...

            // not enough room for totals on this page
            if (element.mm100Left() <
ProgrammableTotalsLine.heightmm100())
            {
                BlankDetail.height(element.mm100Left()/100,Units::mm);
// size is rest of page
                element.execute(2);  // print BlankDetail line
                element.newPage();
            }
            // print blank section before totals - size is rest of page
minus the height of the totals

BlankDetail.height((element.mm100Left()-PageFooter.heightmm100()-Program
mableTotalsLine.heightmm100())/100,Units::mm);
            element.execute(2);

            // print Totals
            element.execute(1);  // this is the ProgrammableTotalsLine

Jim Chwaszczewski
Wipfli, LLP
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
 
--------------------------------------------------------

The content of this E-mail and any attached files is confidential, and
may be subject 
to certain privilege.  This email is intended for the designated
recipient(s) only.  
If you have received this E-mail in error, please immediately contact
the sender.
 
WIPFLI LLP
Business experts.  Right from the start.



[Non-text portions of this message have been removed]








Yahoo! Groups Sponsor

ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=12924lqvm/M=295196.4901138.6071305.3001176/
D=groups/S=1705006764:HM/EXP=1097090081/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com>


<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=890405390>



  _____ 

Yahoo! Groups Links

*         To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 

*         To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
 

*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .



[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to