Method. Sets the name of the folder to which printer output is directed when the output is sent to a file. Use the method setPrintToFileName to set the name of the file that should receive the print output. This method is relevant only when the printToFile property is set to True.
public void setPrintToFileFolder(String folderName)