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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Print barcode through Document Routing Agent

(0) ShareShare
ReportReport
Posted on by 25

Hi folks,

I'm trying to print tag i.e. bar-code print through Document Routing Agent using the below code, even I get the print name through this code, In status bar - it's show up success but print hasn't been done. 

I found some things that is if in Pages shown up as Not available, it can't be a print the any document.

Can you please helping out  

Code - 

WHSDocumentRouting::printLabelToPrinter(InventParameters::find().MGDPrinterName, finalpnrStrFromSKUNumLoc);

pastedimage1617862054432v1.png

Thanks in Advance

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    Make sure the printer is associated with the correct machine. You can learn the user's machine with the code below.

    Microsoft.Dynamics.AX.WHS.DeviceCom.ClientHelper::RetrieveClientName()

    Apart from that, sometimes the printer cannot print out in case of formatting errors. You can print something simple and try to see if the problem is with the format. There is an example in the link below (zpl). I haven't tried it, but it seems right.

    community.dynamics.com/.../465802

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans