Report - Printing several records in one line

mxcmxc Member Posts: 42
edited 2003-08-20 in Navision Attain
How can I print several records from one table in the same line using a report?
Regards,

Manuel Xavier

Comments

  • jyotsnasjyotsnas Member Posts: 62
    Hi

    for this you need a complete interation of the dataitem before printing. In every iteration You concatenate the field values in a string and in footer display the concatenated string variables. This is what I have been able to do till now !!!

    regards,
    Jyotsna
    ______Doubt is the father of Invension_______
  • eromeineromein Member Posts: 589
    I think there's a lot of ways to do this.

    What you could do is buffering records in a temp record or an array. Then keep track of how many records you have buffered and print after a x records.

    Try not to use the currform.showoutput statement. It doesn't work :(

    (unless it's fixed in 3.70, anyone?)

    Maybe something like this is a solution:
    customer <Customer>
      Integer <PrintCustomers>
    
    Customer - OnAfterGetRecord
      NumbCustomersBuffered := 
        NumbCustomersBuffered + 1;
      Cust[NumbCustomersBuffered] := Customer.name;
    
    PrintCustomers - OnPreDataItem
      IF NumbCustomersBuffered MOD 5 <> 0 THEN
        currreport.break;
      
      NumbCustomersBuffered := 0;
    
    PrintCustomers - body (section)
      Cust[1]
      Cust[2]
      Cust[3]
      Cust[4]
      Cust[5]
    

    *code not been tested.

    [Duplicate messages deleted by Administrator]
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • eromeineromein Member Posts: 589
    Here we go ;)

    Read them all! Then you will never forget!

    just in case I get angry replies.... It wasn't me... It was the forum. It got all weird on me!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
Sign In or Register to comment.