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 :
Microsoft Dynamics AX (Archived)

Picking list report sent to default printer always

(0) ShareShare
ReportReport
Posted on by 330

Hi,

I have selected a printer while printing picking list report from Production order->Start screen.

But the report is always sent to default printer (Microsoft XPS document writer).

I have debugged the code and found that the problem is in below code of run method of SrsReportRunController class.

printerInfo = printerHelper.GetPrinterInfo(srsPrintDestSettings.printerName());

// Check if the device is available

if (printerInfo == null)

{

// Use the default printer

printerSettings = new System.Drawing.Printing.PrinterSettings();

srsPrintDestSettings.printerName(printerSettings.get_PrinterName());

}

Here , printerInfo is initialized to null so it is assigning default printer.

But when I use the same printer to print picking list from Production control->Reports->Production papers->Picking list, this printerInfo object is initialized and the report is sent to printer.

printerSettings.get_PrinterName() is returning the same printer name in both scenarios.

Have anyone faced this issue and how it can be solved?

*This post is locked for comments

I have the same question (0)
  • MASAndy Profile Picture
    on at

    I am getting this right now... did you ever manage to fix it?

  • Abby Abraham Profile Picture
    314 on at

    Were you able to resolve this issue?

  • MASAndy Profile Picture
    on at

    Hello Abby,

    There is a hotfix available from Microsoft that helps resolve the issue of network-printer printing.

    KB3093518 fixes issues introduced by KB3011401 and helped fix the issue for me, although we had to take it a step further with our architecture setup with citrix.  This hotfix DID help in all-in-one environments and other types of remote clients, just not citrix

  • Abby Abraham Profile Picture
    314 on at

    Thanks for the response.. I will look into this hotfix.

  • Community Member Profile Picture
    on at

    I think we have this issue. We will install the hotfix but we do also use Citrix. Can you send me the details on the additional steps you needed to do to resolve the issue with using Citrix?

  • MASAndy Profile Picture
    on at

    Kathy,

    The hotfix may work fine for you depending on your setup.  We are using ScrewDrivers for printing in Citrix which comes with its own set of challenges specific to AX.  I would install the hotfix first and give it a go.

    Keep in mind depending on how your print solution is set up, you may need to make your AOS server printers available to the client.

    The core of this issue is that running a process against multiple records (eg: Starting one or more production orders) is a process that is likely done on the AOS server (see the class ProdMultiStartUp.main method -> runOnServer).  When it comes time to process the printout of documents, it is trying to do that on the server...where whichever printer you selected from what was available on your client isn't available on the AOS server.  You may be able to solve this with some printer setup and aos/client configuration tweaks if you're lucky. 

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans