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)

Printer not installed on packing slip printing

(0) ShareShare
ReportReport
Posted on by 7,437

Hi,

We installed windows 7 connected to a windows 2008 64 bit server and connected a HP2205DN network printer. For some reason I cannot print anymore and if I post directly a packing slip either through the SBS print server the output is distorted and not oke, if I print directly to the printer which has always been present I also do not get a print.

I get on both sides the message "Printer not installed" although they are there. Looking up the packing slip and then printing from the screen the packing slip works on both printers.

J.

===>

/// <remarks>
/// This method should be called in the print method of the report using the print
/// setting, directly before the call to the super method. If printing in batch mode,
/// exceptions will be thrown to indicate errors. If printing in client mode, errors
/// will be added to the infolog and false will be returned.
/// </remarks>
/// <exception cref="Exception::Error">
/// The AOS instance does not have access to the selected printer.
/// </exception>
/// <exception cref="Exception::Error">
/// The printer is not accessible.
/// </exception>
public boolean validatePrinterDestination()
{
    boolean result = true;

    // Handle validation errors uniquely based on the presence of a client
    void handleValidationErrors(str _errorMessage)
    {
        if (xGlobal::hasClient())
        {
            // Client available so don't throw an exception so processing can continue
            error(_errorMessage);
        }
        else
        {
            // In batch, throw an exception since it will continue to process
            throw error(_errorMessage);
        }
    }
    ;

    if (printJobSettings != null)
    {

        if (printJobSettings.getTarget() == PrintMedium::Printer
            && printJobSettings.requestedDeviceName() != printJobSettings.deviceName())
        {
            // Warn the user when the requested printer is not used

            result = false;

            if (!xGlobal::hasClient() && printJobSettings.requestedRunOn() == ClassRunMode::Client)
            {
                // The AOS does not have access to the selected printer
                handleValidationErrors("@SYS118708");
            }
            else
            {
                // The printer is not installed on the Client / AOS any longer
                handleValidationErrors("@SYS123696");
            }
        }
    }

    return result;
}

*This post is locked for comments

I have the same question (0)
  • user5555 Profile Picture
    7,437 on at

    Hi,

    I had some time to get this bug clear. We have 1 PC with W7 (PC1) and 1 PC with XP32 (PC2). Two printers: Xerox Laser (PR2) old one not supporting W7 anymore and new one HP2205DN (PR1) with generic driver for 2008 SBS 64 bit. PR1 is near PC1.

    Next is happening:

    1. I login with user A on PC 1 near PR1. I want to print to PR1, but 'printer not installed' message if I use print management. If I use a inquiry and then print the document it is not a problem at all. Then I go to AR --> Forms --> setup -> Print management and do some changes. Now print management is working oke. Also for batch printing.

    2. I login with user B on PC 2 near PR2. I want to print, but get again this nasty message. Printing an individual document goes oke. But printing through print management not. Again poking a bit through print management and it works again..but on PC 1 not again.

    I have the feeling that print management uses stored settings in AX tables instead of what is actually present on the client. Thus individual printing goes oke and according to setting (not using print management). But print management goes wrong. Does anybody know what tables are used to store this settings? I think the storage of settings for print management is PC related although it should not?

    Can the solution be that a generic printer driver is choosen from the SBS server which is the same for both pc's PC1 and PC2. Say with print management always print on PR1. This might avoid this problem?

    Any idea's?

    J.

  • user5555 Profile Picture
    7,437 on at

    Hi,

    Friendly bump

    J.

  • user5555 Profile Picture
    7,437 on at

    Friendly bump.

  • Gil Profile Picture
    35 on at

    Experiencing the same issue.

    Did you manage to solve your problem?

  • Community Member Profile Picture
    on at

    In our case, this turns out to be caused by bad usage data. Deleting the class PurchFormLetter_PackingSlip from the users usage data form did the trick, but after a few days the problem returned. Any thoughts?

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