How do I print the packing slip to a different printer in AX 4.0 ?

Hi,

How do I print the packing slip to a different printer? We have a daughter company and when we booked the packing slip is printed automatically there.

The printer is defect there, and I will adjust to a different printer in AX 4.0

Please share your experience

Thanks in advance

Hi,

I don’t know if it works on AX4 but you can try the following code that works in AX2009:

in the your report’s init() method :

str printer;

;

printer = ‘\\path_to_your_printer’;
this.DeviceName(printer);
this.setTarget(printmedium::Printer);

this works with a network printer.

regards,

Thomas

Hi Thomas,

Thanks for the reply.

There is a simple setting in AX to change the printer for Packing Slip without code change.

regards,

Aiman