We have a list that we print that is a remittance advice. The table header contains the details of the payment and the table shows the allocations of the payment againsteach invoice.
We have a customer who adds a payment and does not allocate the payment. In this circumstance the headings (variables) are printed but the table is not so the information about the payment itself is not shown.
The print loop is basically:
// Print header for first page
nRet := LlPrint(hJob)
goto first record with passed DB No
loop while DB ref on file = passed DB No and not eof()
if record is not a payment record
gather field info of record
// print table line
do while LlPrintFields(hJob) == LL_WRN_REPEAT_DATA
skip to next record
// print footer of last page
do while LlPrintFieldsEnd(hJob) == LL_WRN_REPEAT_DATA
// end List & Label print job
I’ve modified it a little to make it readable.
I’ve seen that there is an option (LL_OPTION_DELAYTABLEHEADER) that when set to TRUE will print the header when the 1st table line is printed or FALSE which sets it to print when the 1st LLPrint() is called (which it says is the default).
As I have not used this option setting anywhere, I presume that it should always be printing the table (and therefore the header) immedialtely on the LLPrint call…
Should this be the case? Is there something wrong with my code logic? Can what I want to be done actually be done?