Open Bug 1026409 Opened 10 years ago Updated 2 years ago

[Error] Can't print to XPS - Printer Error - An error occurred while printing

Categories

(Core :: Printing: Output, defect)

x86_64
Windows 7
defect

Tracking

()

People

(Reporter: gingerbread_man, Unassigned)

Details

(Keywords: parity-ie, regression)

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Built from https://hg.mozilla.org/mozilla-central/rev/80431d4fd0da

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Built from http://hg.mozilla.org/releases/mozilla-release/rev/af7d521d4fb3

1. Go to https://en.wikipedia.org/w/index.php?title=Main_Page&printable=yes
2. Click the Menu Button, then the Print button.
3. Click the Print… button.
4. Select "Microsoft XPS Document Writer" as the printer, then click the OK button.
5. Type a filename, e.g. filename.xps, then click the Save button.

A dialog box pops up saying
[ Printer Error ]
An error occurred while printing.

No problems when printing from Internet Explorer 11.
Firefox 4.0.1 works.
Built from http://hg.mozilla.org/releases/mozilla-2.0/rev/fca718600ca0

Firefox 5.0 beta 1 doesn't work.
Built from http://hg.mozilla.org/mozilla-beta/rev/9df9078bc469
Keywords: regression
There's a new development that has me completely confused.

WORKS:
37.0.1 in my regular profile, provided that “Print Background (colors & images)” is checked. I also tried Safe Mode, which rules out add-ons and leaves a difference in preferences as the only likely explanation.

FAILS:
37.0.1 in a brand new profile. Checking “Print Background (colors & images)” makes no difference. I also compared the print.printer_Microsoft_XPS_Document_Writer.* preferences and set the differing ones to match those in the regular profile. It didn't help. The regular print.* preferences are all at their default values in both profiles.
Similar problem happens on windows 10. Edge can print page into pdf using Print to PDF but firefox can't and always says "You have no right to store files here"
Try resetting "nullifying" the key "security.sandbox.content.tempDirSuffix" in about:config.

Let me know if that fixes it.  If it does, this is a bug that can be traced and fixed.

Thanks.

- Kev
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0

Resetting security.sandbox.content.tempDirSuffix doesn't fix the problem, even after restarting.
What paper size is selected when you try to print?
Summary: Can't print to XPS - Printer Error - An error occurred while printing → [Error] Can't print to XPS - Printer Error - An error occurred while printing
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
20180118012136

Letter.
I just tried printing in Vivaldi 1.13.1008.34 32-bit and it worked.
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-ie
Whiteboard: [parity-ie]

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
20190917135527

This appears to be dependant on the web page. For example, I can't print this bug report page, but I can print the Firefox release calendar. This happens with both Microsoft XPS Document Printer and Microsoft Print to PDF. As mentioned at comment 2, it also happens in safe mode.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.