The Objectives of this video are:
1. Review a typical NAV 2013 reports preview.
2. Modify the report to show fixed No. of lines
3. Run the report to review the changes.
Please note that I have used Report 205 = Order Confirmation report in this demo.
The functions created in Visual Studio are
public Shared DocumentNo as Object
public Shared FixedLenth as integer
public Shared prevOutputNo as integer
Public Function SetDocLength(NewData as boolean,Group as object,Outputno as integer )
If (NOT NewData) AND (prevOutputNo = OutputNo) AND (DocumentNo = Group) Then
FixedLenth = FixedLenth + 1
FixedLenth = 0
DocumentNo = Group
prevOutputNo = OutputNo
Public Function GetDocLength( ) As Integer
Expression Added in Invisible text box is