bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Message "You cannot print while in print preview" when I try to print from print preview.




Print Preview
12 years ago
7 years ago


(Reporter: Pete, Unassigned)



Firefox Tracking Flags

(Not tracked)




12 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060728 SUSE/1.0.4-2.1 SeaMonkey/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060728 SUSE/1.0.4-2.1 SeaMonkey/1.0.4

When in print preview under Linux (print.whileinPrintPreview = TRUE) the message "You cannot print while in print preview." appears after clicking on print in the ensueing printer dialog.

Reproducible: Always

Steps to Reproduce:
1.set print.whileinPrintPreview to TRUE in about:config
2.File->Print Preview
3.Click on Print
4.Printer dialog appears. Click on print

Actual Results:  
Error message popup: "You cannot print while in print preview."

Expected Results:  
Document should print.

This occurs in Seamonkey (1.0.4) and Firefox ( and has ALWAYS occurred on Mozilla browsers under Linux: Firefox since v0.8, Mozilla since Netscape!

I've tried on three different machines with installations of Fedora Cores 2,3,4 Suse from 9.2 to 10.1, Ubuntu 5.10, Mandrake 10, Mandrive 2005LE etc. etc.

Print preview has always worked perfectly under Windoze - from 98 to XP-Pro.

Comment 1

12 years ago
Related to bug 126802?  (The reason I'm not marking this bug as a dup is that the reporter of this bug mentioned setting a hidden pref, print.whileinPrintPreview, that sounds like it should work around that bug.)

Comment 2

11 years ago
Hi guys,

I'm now on Firefox under SuSE 10.2 and this problem, which has been now been around for over 5 years, is still there.

I know you're all over stretched volunteers etc. but it would really be nice if print preview worked under non-commercial OSes. (Even changing the scaling doesn't refresh correctly - you have to quit PP and go back in to see the effect.)


Keywords: pp

Comment 3

10 years ago
I can confirm this bug. I'm running Firefox on Ubuntu Linux 7.10.

I too have set print.whileinPrintPreview to TRUE in about:config (this is needed to get the "print" and "zoom" buttons to appear in the print preview toolbar).

However when you click the "print" button you get the standard print dialog, and then when you click "print" again, it gives the "You cannot print while in print preview" error message. Also changing the zoom settings has no effect whilst in print preview in Linux.

I personally use both a Windows and a Linux desktop - Firefox's print preview screen in Windows is great and extremely useful, but the Linux one is crippled (to not show the print / zoom buttons by default) and broken (when you turn them on, they don't work).

Comment 4

10 years ago
I upgraded to Ubuntu 8.04 with Firefox 3 beta 5, and now this seems to work (i.e. I can now print in print preview mode in Linux). Once Firefox 3 is released, can anyone else (e.g. Pete?) confirm this on Linux? If so, then this bug can be closed.

Comment 5

10 years ago
I too have installed Ubuntu 8.04 and can confirm that Firefox 3 beta 5 has solved the bug. I can now print in print preview. And the scaling works as well which it doesn't in Firefox 2.

OTOH I don't know whether to mark this as fixed as Firefox 3 isn't released yet.


8 years ago
Component: General → Print Preview
Product: Firefox → Core
QA Contact: general → printing


8 years ago

Comment 6

7 years ago
Pete, Nick. thanks for the update.
When the bug is your own and the problem goes away, you can change the status to RESOLVED and the resolution to WORKSFORME
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.