In the address bar type "about:config" and press Enter. In the Filter field search for "print.whileInPrintPreview".