Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How can I use metric units in Page Setup dialog box?

  • 7 trả lời
  • 38 gặp vấn đề này
  • 501 lượt xem
  • Trả lời mới nhất được viết bởi Glenn 8D

more options

When I go to my Page Setup dialog box, in Margins tabs, I see that I can specify the margins in inches. However, in my friends PCs, I have seen Page Setup dialog boxes that use millimeters for handling margins.

How can I make my version of Firefox to use millimeters instead of inches? Using this obscure unit is inconvenient for me. I prefer to use the internationally-accepted metric unit.

Được chỉnh sửa bởi Fleet Command vào

Tất cả các câu trả lời (7)

more options

I can't find documentation about the settings, so you'll need to experiment a bit. I hope you're using A4 paper size instead if US- Letter, because I suspect that you will find out that the length of the paper won't be able to be set to Letter if you use the metric size unit setting.

Type about:config in the URL bar and hit Enter.
If you see the warning, you can confirm that you want to access that page.

Pref name = print.printer_printer_name.print_paper_size_unit
and maybe
print.printer_printer_name.print_paper_size_type
Try setting the Value to 1


There's a support thread about metric settings here. http://forums.mozillazine.org/viewtopic.php?f=39&t=588284

more options

Well, you're answer didn't exactly help (see the included screenshot). but I think now I know what I should do: I should get to one of my friend's computers and peak into their pref.js. (Hopefully, they won't mind!) Perhaps, I can do that by the end of this week when I return home...

And yes, I'm using international papers too. US Letter paper is hard to come by here. A4, A5, B4 and B5 are what I use.

Được chỉnh sửa bởi Fleet Command vào

more options

Total failure! It seems Firefox internally saves the margin values in Inches.

Anyone has any other ideas?

more options

Giải pháp được chọn

Được chỉnh sửa bởi cor-el vào

more options

That entire js file is based upon inch measurement, with a multiplication factor of 25.4 for conversion to millimeters. WTF was Netscape thinking when they wrote that file, in (what) 1994 or 1995?

Take a look starting at line 188 - function createPaperArrayFromDefaults() - and down from there.

I wonder how that is handled in localizations like en-GB versions of Firefox?

more options

Thanks cor-el. The code you have posted helped!

I have discovered that Firefox displays "inch" or "millimeters" depending on the type of paper user selects! Hence, when user selects A4 paper, the dialog box automatically shows "millimeters".

The very subtle trick was: Choose the paper size first and apply the settings! (I was trying to do both simultaneously.) There is no way to do so except by printing once with wrong settings or via about:config dialog box. Another aspect of Firefox print-unfriendliness... (If I may say so, Internet Explorer 7 or later prints much better.)

more options

"Firefox displays "inch" or "millimeters" depending on the type of paper user selects!"

I really thought there would be a Metric/Standard (US/UK) toggle selection option. There is a few problems with using paper type for determining measurement type. For Example, I have multiple printers and each has different paper type. To change and save a paper type I have to print a page for that to become the current default OR go to Printers & Faxes (MSWindows) and permanently change the default settings.

Thank You, Fleet Commander for posting measurement type depends upon paper type selected. Because of it, I was at able to find a work-around. :)