Attempting to create graphics output might result in "Error: There is no currently selected printer driver" and other errors


In certain situations, errors that are similar to the following might be written to the SAS® log after you attempt to create graphics output:

Error: There is no currently selected printer driver. Use Print Setup to select an installed printer driver. 
Error: The device associated with SASPRTC cannot support graphics. 
Error: Driver SASGDDMX will not load. 
Error: Device was not specified.

One way to circumvent this issue is to specify an appropriate SAS/GRAPH® device driver at the top of the code. An example follows:

goptions device=png;

Another way to circumvent this issue is to specify an appropriate value for the PRINTERPATH system option at the top of the code. See the following example:

options printerpath=pdf;

When this issue occurs in SAS Studio®, in addition to the circumventions mentioned above, you can also take these steps: