
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);
Thanks in Advance
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.