Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Report Printing Problems.

(0) ShareShare
ReportReport
Posted on by 1,835

Dear All,

I have develop the report for barcode printing. In this report if in line section have 5 different item then 5 different print will come. It is working fine as well as with no. of copies option. 

Now, my new requirement is if in any item have multiple lot like 5 or 6 lot. How it will  be possible to print the same item with different lot no.(5 copy/6 copy.) I have attached the screenshots.

1212.uu.png

Complete code are below:

Documentation()

OnInitReport()

OnPreReport()

OnPostReport()

Posted Whse. Receipt Header - OnPreDataItem()

Posted Whse. Receipt Header - OnAfterGetRecord()
NoOfLoops :=0;
IF "Posted Whse. Receipt Header"."Location Code"='101' THEN
Bottom := 4.5;

Posted Whse. Receipt Header - OnPostDataItem()

CopyLoop - OnPreDataItem()
SETRANGE(Number, 1, NoOfCopies);

CopyLoop - OnAfterGetRecord()

CopyLoop - OnPostDataItem()

Posted Whse. Receipt Line - OnPreDataItem()

Posted Whse. Receipt Line - OnAfterGetRecord()
RecItem.RESET;
RecItem.SETRANGE("No.","Posted Whse. Receipt Line"."Item No.");
IF RecItem.FIND('-') THEN BEGIN
txtItem:=RecItem.Description;
END;

recWhsEntry.RESET;
recWhsEntry.SETRANGE("Entry Type",recWhsEntry."Entry Type"::"Positive Adjmt.");
recWhsEntry.SETRANGE("Whse. Document No.","Posted Whse. Receipt Line"."No.");
recWhsEntry.SETRANGE("Source Line No.","Posted Whse. Receipt Line"."Source Line No.");
recWhsEntry.SETRANGE("Source No.","Posted Whse. Receipt Line"."Source No.");

IF recWhsEntry.FINDFIRST THEN BEGIN
Lotno:= recWhsEntry."Lot No.";
IF Lotno='' THEN
Lotno:=recWhsEntry."Serial No.";
END;

Posted Whse. Receipt Line - OnPostDataItem()

Layout is 

3377.uu1.png

If you guys have some any idea, please help me to resolve it.

 

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report Printing Problems.

    Hello! Try to add one more dataitem for Warehouse Entry instead of cicle inside Posted Whse Receipt Line. It should help

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans