Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
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.

*This post is locked for comments

  • 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans