Il copia & incolla, questa brutta bestia... La riga

Set Printer = X

Va sostituita con

Set Printer = Stampante