Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
NAV/Navision Classic Client
Howdy, Stranger!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Best Of...
Unanswered
Categories
All Categories
73
General
73
Announcements
66.7K
Microsoft Dynamics NAV
18.7K
NAV Three Tier
38.4K
NAV/Navision Classic Client
3.6K
Navision Attain
2.4K
Navision Financials
115
Navision DOS
854
Navision e-Commerce
1K
NAV Tips & Tricks
772
NAV Dutch speaking only
615
NAV Courses, Exams & Certification
2K
Microsoft Dynamics-Other
1.5K
Dynamics AX
317
Dynamics CRM
109
Dynamics GP
10
Dynamics SL
1.5K
Other
993
SQL General
384
SQL Performance
34
SQL Tips & Tricks
34
Design Patterns (General & Best Practices)
Architectural Patterns
10
Design Patterns
5
Implementation Patterns
53
3rd Party Products, Services & Events
1.6K
General
1.1K
General Chat
1.6K
Website
79
Testing
1.2K
Download section
23
How Tos section
259
Feedback
12
NAV TechDays 2013 Sessions
13
NAV TechDays 2012 Sessions
Fix line in body section just seven lines
klum
Member
Posts:
102
2005-06-17
edited 2005-06-20
in
NAV/Navision Classic Client
Hi all,
I need to fix line only seven lines in body section when they have eighth line they should to show on NEWPAGE. I use Sale Invoice Line on body section.
Please help me ](*,)
Thanks
klum
0
Comments
kriki
Member, Moderator
Posts:
9,118
2005-06-18
I am not sure I understood what you mean. But if you mean that the maximum lines you want per page is 7, then try something like this:
Sales Invoice Line - OnPreDataItem():
intMyCounter := 0;
Sales Invoice Line - OnAfterGetRecord():
intMyCounter += 1;
IF intMyCounter = 8 THEN BEGIN
intMyCounter := 0;
CurrReport.NEWPAGE;
END;
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
0
klum
Member
Posts:
102
2005-06-18
Hi kriki,
I try what did you suggest me but on new page or second page is not show. On first page now have 7 per page that's correct.
Anybody know why not show on new page after 7 lines ???
Thank in advance
klum
0
Savatage
Member
Posts:
7,142
2005-06-18
here's 2 more suggs....
http://www.mibuso.com/forum/viewtopic.php?t=6165
http://www.mibuso.com/forum/viewtopic.php?t=5174
Harry Ruiz
http://www.BiloBeauty.com
http://www.autismspeaks.org
0
klum
Member
Posts:
102
2005-06-19
Hi Savatage,
I tried what you suggestion like this
Report - OnInitReport()
MaxLines := 7;
Sales Invoice Line - OnPreDataItem()
LineCounter := 0;
Sales Invoice Line - OnAfterGetRecord()
LineCounter += 1;
IF LineCounter > MaxLines THEN BEGIN
CurrReport.NEWPAGE;
LineCounter := 0;
END;
Page 1 it's work well but Page 2 not work not show anything and i can not print report ](*,) ](*,) ](*,)
Thanks
klum
0
klum
Member
Posts:
102
2005-06-20
Hi all,
Now my report work as well
I just put some thing wrong place.
First I put about CLEAR(...) wrong at Sales Invoice Header, Header(1) - OnPreSection.
Correct is I move CLEAR(...) at Sales Invoice Header - OnAfterGetRecord.
klum
\:D/
0
Sign In
or
Register
to comment.
Comments
Sales Invoice Line - OnPreDataItem():
intMyCounter := 0;
Sales Invoice Line - OnAfterGetRecord():
intMyCounter += 1;
IF intMyCounter = 8 THEN BEGIN
intMyCounter := 0;
CurrReport.NEWPAGE;
END;
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I try what did you suggest me but on new page or second page is not show. On first page now have 7 per page that's correct.
Anybody know why not show on new page after 7 lines ???
Thank in advance
klum
http://www.mibuso.com/forum/viewtopic.php?t=6165
http://www.mibuso.com/forum/viewtopic.php?t=5174
http://www.BiloBeauty.com
http://www.autismspeaks.org
I tried what you suggestion like this
Report - OnInitReport()
MaxLines := 7;
Sales Invoice Line - OnPreDataItem()
LineCounter := 0;
Sales Invoice Line - OnAfterGetRecord()
LineCounter += 1;
IF LineCounter > MaxLines THEN BEGIN
CurrReport.NEWPAGE;
LineCounter := 0;
END;
Page 1 it's work well but Page 2 not work not show anything and i can not print report ](*,) ](*,) ](*,)
Thanks
klum
Now my report work as well
I just put some thing wrong place.
First I put about CLEAR(...) wrong at Sales Invoice Header, Header(1) - OnPreSection.
Correct is I move CLEAR(...) at Sales Invoice Header - OnAfterGetRecord.
klum