web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Report Printing Problems.

(0) ShareShare
ReportReport
Posted on by 1,893

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans