double header and body of the same data item-Reports
naushie
Member Posts: 33
Well i have a problem like this:
since i can take 2 headers/body section of the same dataitem.
now the question is this
Can i print the other header/body on the next page.
like first one prints on one page and other one prints on the next new page?
since i can take 2 headers/body section of the same dataitem.
now the question is this
Can i print the other header/body on the next page.
like first one prints on one page and other one prints on the next new page?
Naushad Alam
Consultant -Navision
All e Technologies (P) Ltd.
Building Solutions for Extended Enterprises
www.alletec.com
Consultant -Navision
All e Technologies (P) Ltd.
Building Solutions for Extended Enterprises
www.alletec.com
0
Comments
-
Yes you can.
If you want to print alternative pages then do a check on the page no. in the OnPreSection:If PAGENO=1 or PAGENO=3 or PAGENO=5 or PAGENO=7 or PAGENO=9 or PAGENO=11 or etc..... you get the idea then currreport.showoutput(True) else CurrReport.ShowOutput(False);
Then in the OnPreSection of the next data itemIf PAGENO=2 or PAGENO=4 or PAGENO=6 or PAGENO=8 or PAGENO=10 or etc..... then currreport.showoutput(True) else CurrReport.ShowOutput(False);
Thats one way
You could always use a boolean check:Create 2 boolean Variables: OddPagePrinted EvenPagePrintedOnPreSection (of your odd page section)CurrReport.Showoutput(EvenPagePrinted);
OnPostSectionOddPagePrinted:=True; EvenPagePrinted:=False;
OnPreSection (of your even page section)CurrReport.Showoutput(oddPagePrinted);
OnPostSectionEvenPagePrinted:=True; OddPagePrinted:=False;
Same result, just different ways to do it. The first would be easier to debug, but the second is much shorter to write
Remember: Keep it simple0 -
Dean's example can be modified to cater fo all odd numbers like this:
IF (PAGENO MOD 2) = 1 THEN CurrReport.SHOWOUTPUT(TRUE) ELSE CurrReport.SHOWOUTPUT(FALSE);
An even shorter version, maybe slightly more difficult to read, is:CurrReport.SHOWOUTPUT(PAGENO MOD 2 = 1);
For even pages, useCurrReport.SHOWOUTPUT(PAGENO MOD 2 = 0);
AlastairAlastair Farrugia0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions