Cause
This error occurs if there is an attempt to change the printer when printing has already been initiated. This error can occur if there is an attempt to change the printer in use before any printing has occurred, or if some printing has already been performed on the current printer and there is an attempt to change the printer during printing.
Action
Change your application code to prevent this.
If printing has occurred, the printer must be closed before starting new output on a different printer.