To investigate further could you please provide the following information.
Input file(s)
Generated output file(s) or errors
Code and settings used to generate (2) from (1)
Screenshots showing the output, and clearly indicating what you expected to get instead, and also clearly indicating the application/browser being used to view.
From your screenshot the printer is properly installed. You can go ahead and use it without needing to call printerSetPrinterName() or anything else in that the code you sent.