Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

How to give multiple heading names in report header while printing the report?

Posted on by 1,835

Dear Experts,

In my posted sales invoice, I want to print the invoice in 5 copies with different heading. 1st invoice is "Original", 2nd invoice is "Duplicate", 3rd invoice is "Triplicate", 4th invoice is "Quadruplicate" and 5th invoice is "Extra Copy"  will come on report header.

Is there any possible in report design.? Please give me idea to develop it.

  • manish.yadav Profile Picture
    manish.yadav 1,835 on at
    RE: How to give multiple heading names in report header while printing the report?

    Thank you for your fast reply. As per your suggestion I have changed my my code like:

    IF Number > 1 THEN BEGIN

     CopyText := ' Original Copy';

     OutputNo += 1;

    END;

    IF Number > 2 THEN BEGIN

     CopyText := ' Duplicate Copy';

     OutputNo += 1;

    END;

    IF Number > 3 THEN BEGIN

     CopyText := ' Triplicate Copy';

     OutputNo += 1

    END;

    IF Number > 4 THEN BEGIN

     CopyText := ' Quadruplicate';

     OutputNo += 1

    END;

    IF Number > 5 THEN BEGIN

     CopyText := ' Extra Copy';

     OutputNo += 1

    END;

    My query is resolved. Thank you. Please close this thread.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to give multiple heading names in report header while printing the report?

    please have a look at the report 206 "Sales Invoice". Here is a DataItem CopyLoop (Integer). This will be done with every copy.  

    I would create an array with the different headings. Every time the DataItem (OnAfterGetRecord) is run through, get the header from the array.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans