Hard coding number of print outs

lisakinslisakins Member Posts: 23
Is there a way, without using a request form and hard coding there, to always have a report print three times any time a user creates the report?

Comments

  • EvertPrinsEvertPrins Member Posts: 6
    If it is a standard Navision report like report 206 Sales - Invoice, you can change the code in the CopyLoop Dataitem, so it will print 3 times.

    Normal Navision code:

    NoOfLoops := ABS(NoOfCopies) + Cust."Invoice Copies" + 1;
    IF NoOfLoops <= 0 THEN
    NoOfLoops := 1;
    CopyText := '';
    SETRANGE(Number,1,NoOfLoops);


    Always print 3 times:

    //NoOfLoops := ABS(NoOfCopies) + Cust."Invoice Copies" + 1;
    //IF NoOfLoops <= 0 THEN
    // NoOfLoops := 1;
    NoOfLoops := 3;
    CopyText := '';
    SETRANGE(Number,1,NoOfLoops);
  • MP_NAVMP_NAV Member Posts: 42
    What if this is not for a Sales Invoice report? I have seen many posts that are directed to the base NAV Invoice Reports...

    Let's say we have a non-invoice report that does not already have a Copyloop dataitem... any suggestions ?
    -MP
  • SavatageSavatage Member Posts: 7,142
    you can add the copyloop dataitem 8-[
Sign In or Register to comment.