DSIR REFORMAT REPORTS (1676)    REMOTE PROCEDURE (8994)

Name Value
NAME DSIR REFORMAT REPORTS
TAG FRMTRPT
ROUTINE DSIROIR
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY SUBSCRIPTION
WORD WRAP ON TRUE
DESCRIPTION
This RPC will take a given report array and resize the length to fit into 
78 will be the remaining text with blank lines to fill to line 78 and 
lines 79 and 80 will be copies of lines 39 and 40.  If there are blank 
lines that can be removed from the bottom of the body to fit onto one 
page they will be removed so that the report will fit.
a smaller print area.  It takes into account header and footer lines and 
resizes the main body of the report.  It may return more pages than the 
input array.  Example: Report A is 60 lines with 3 lines of header and 2 
lines of footer.  Report A has 50 lines of body.  Report A needs to print 
on a preprinted form that only allows for 40 lines of text.  Calling the 
RPC will return an 80 line array that will have lines 1 through 3 being 
header, lines 4 through 38 being text and lines 39 and 40 being footer.  
Lines 41 through 43 will be copies of lines 1 through 3, lines 44 through 
INPUT PARAMETER
  • NEW REPORT LENGTH
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   9
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the number of lines to format the old report into.
    
  • HEADER COUNT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   9
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    This is the number of line at the top of the report that are considered 
    to be headers.  The RPC will always take the first x number of lines as 
    header, this parameter is that x.  
    
  • FOOTER COUNT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   9
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    This parameter tells the RPC how many lines are footer text.
    
  • OLD LINE COUNT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   9
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    This parameter is needed for the RPC to know many lines per page are in 
    the incoming report.
    
  • INCOMING (OLD) REPORT
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    This is the array of the old report to be reformatted.
    
RETURN PARAMETER DESCRIPTION
This RPC returns an array comprised of entries in the incoming array, 
with blank lines removed or text lines moved to fit into the print length 
defined in parameter 1.