New Page Per group at Runtime
sunnyk
Member Posts: 280
HI,
In report 5605, Fixed Asset - Book Value 01- I wrote Code to print New Page per group or Not depending on Option Selected by the User at run time. Even though it is working but in case when the option is Yes it is always printing first Page as balnk?
Have anybody tried to change that property at run time before?
In report 5605, Fixed Asset - Book Value 01- I wrote Code to print New Page per group or Not depending on Option Selected by the User at run time. Even though it is working but in case when the option is Yes it is always printing first Page as balnk?
Have anybody tried to change that property at run time before?
0
Comments
-
Can you show us the code and where did you write?0
-
IF NewPagePerGroup THEN BEGIN CASE GroupTotals OF GroupTotals::"FA Class": IF (GroupByValue <> "FA Class Code") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "FA Class Code"; END; GroupTotals::"FA Subclass": IF (GroupByValue <> "FA Subclass Code") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "FA Subclass Code"; END; GroupTotals::"FA Location": IF (GroupByValue <> "FA Location Code") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "FA Location Code"; END; GroupTotals::"Main Asset": IF (GroupByValue <> "Component of Main Asset") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "Component of Main Asset"; END; GroupTotals::"Global Dimension 1": IF (GroupByValue <> "Global Dimension 1 Code") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "Global Dimension 1 Code"; END; GroupTotals::"Global Dimension 2": IF (GroupByValue <> "Global Dimension 2 Code") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "Global Dimension 2 Code"; END; GroupTotals::"FA Posting Group": IF (GroupByValue <> "FA Posting Group") THEN BEGIN CurrReport.NEWPAGE; GroupByValue := "FA Posting Group"; END; END; END; }
I wrote this at onAfterGetrecord.0 -
As per this code the first time it self the code will hit NEWPAGE, right?
IF (GroupByValue <> "FA Class Code") THEN BEGIN
0 -
HI Mohan,
I agree and i tried to put one more condition in each Case statement as (GroupByValue <> ''), so it will not hit the newpage at very first record, But this is also not working and i am getting extra first page.
Even i tried to write CurrReport.Newpage at groupfooter section as well but to no luck.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 323 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
