X
Нажмите здесь, чтобы перейти на мобильную версию сайта.

Форум поддержки

Why doesn't printing use the default printer?

Размещено

This bug has been here for ages and having to do periodic resets using about:config every time it goes pair shaped is a bloody annoying time waster. Could someone spend 5 minutes to fix it so it works like every other windows program in the universe that accesses a printer???

This bug has been here for ages and having to do periodic resets using about:config every time it goes pair shaped is a bloody annoying time waster. Could someone spend 5 minutes to fix it so it works like every other windows program in the universe that accesses a printer???

Выбранное решение

Do you mean my workaround doesn't work for you?

Прочитайте этот ответ в контексте 1
Цитата

Дополнительные сведения о системе

Установленные плагины

  • Shockwave Flash 32.0 r0

Приложение

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Дополнительная информация

jscher2000
  • Top 10 Contributor
8758 решений 71662 ответов
Размещено

Normally Firefox re-uses the last printer you print to in Firefox. Is that what your Firefox doing? I don't know whether anyone has posted a workaround for that in a previous thread, i.e., forcing Firefox to always return to the same printer. I can't recall seeing one.

Here is a method that will lock all instances of Firefox to a single printer. You will be able to override it on a case-by-case basis, but Firefox won't retain that modification. This uses the "Autoconfig" file method documented in the following article:

Customizing Firefox Using AutoConfig

To set this up, you will create two files. Note: This assumes you do not already have any Autoconfig file set up. If you do, you simply need to add the lockPref() line below to your existing File #2.

File #1:

Contents:

pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);

Name this something like autoconfig.js (make sure Windows doesn't add .txt to the file name)

Save location, either:

  • C:\Program Files\Mozilla Firefox\defaults\pref
  • C:\Program Files (x86)\Mozilla Firefox\defaults\pref

File #2:

Contents (replace PrinterName with what appears for this preference in about:config after using your default printer):

// IMPORTANT: Start your code on the 2nd line
lockPref("print_printer", "PrinterName");

Name this file firefox.cfg (make sure Windows doesn't add .txt to the file name)

Save location, either:

  • C:\Program Files\Mozilla Firefox
  • C:\Program Files (x86)\Mozilla Firefox

Firefox should pick up on that after its next shut down/restart.

Normally Firefox re-uses the last printer you print to ''in Firefox''. Is that what your Firefox doing? I don't know whether anyone has posted a workaround for that in a previous thread, i.e., forcing Firefox to always return to the same printer. I can't recall seeing one. Here is a method that will lock all instances of Firefox to a single printer. You will be able to override it on a case-by-case basis, but Firefox won't retain that modification. This uses the "Autoconfig" file method documented in the following article: [[Customizing Firefox Using AutoConfig]] To set this up, you will create two files. ''Note: This assumes you do not already have any Autoconfig file set up. If you do, you simply need to add the lockPref() line below to your existing File #2.'' '''File #1:''' Contents: <pre>pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0); </pre> Name this something like ''autoconfig.js'' (make sure Windows doesn't add .txt to the file name) Save location, either: * C:\Program Files\Mozilla Firefox\defaults\pref * C:\Program Files (x86)\Mozilla Firefox\defaults\pref '''File #2:''' Contents (replace PrinterName with what appears for this preference in about:config after using your default printer): <pre>// IMPORTANT: Start your code on the 2nd line lockPref("print_printer", ''"PrinterName"''); </pre> Name this file ''firefox.cfg'' (make sure Windows doesn't add .txt to the file name) Save location, either: * C:\Program Files\Mozilla Firefox * C:\Program Files (x86)\Mozilla Firefox Firefox should pick up on that after its next shut down/restart.
Помогла ли вам это? 0
Цитата
Размещено

Задавший вопрос

Howdy jscher2000,

The annoyance is that I don't want browser to remember last printer. Just stick to default. In any case, when I do select the correct and default printer manually, it hardly remembers that printer anyway.

Howdy jscher2000, The annoyance is that I don't want browser to remember last printer. Just stick to default. In any case, when I do select the correct and default printer manually, it hardly remembers that printer anyway.
Помогла ли вам это?
Цитата
jscher2000
  • Top 10 Contributor
8758 решений 71662 ответов
Размещено

Выбранное решение

Do you mean my workaround doesn't work for you?

Do you mean my workaround doesn't work for you?
Помогла ли вам это? 1
Цитата
Размещено

Полезный ответ

Howdy :) Not sure if the workaround works, problem, if still there takes place randomly. Also tried another trick withing config:about but as the questions states; "Why" is the big question more than anything else. Cheers for your help though. Most appreciated and added to my fix list :)

Howdy :) Not sure if the workaround works, problem, if still there takes place randomly. Also tried another trick withing config:about but as the questions states; "Why" is the big question more than anything else. Cheers for your help though. Most appreciated and added to my fix list :)
Помогла ли вам это? 1
Цитата
thartmanski 0 решений 1 ответов
Размещено

I have used firefox for years. But this breaks it. I had tested printing to a text file on windows 10 and now the printer list has disappeared.

When I logged in on the desktop, it didn't recognise the password and I had to change it.

Time to switch to chrome.

Good bye.

I have used firefox for years. But this breaks it. I had tested printing to a text file on windows 10 and now the printer list has disappeared. When I logged in on the desktop, it didn't recognise the password and I had to change it. Time to switch to chrome. Good bye.
Помогла ли вам это?
Цитата
jscher2000
  • Top 10 Contributor
8758 решений 71662 ответов
Размещено

thartmanski said

I had tested printing to a text file on windows 10 and now the printer list has disappeared.

Was that via a "Print to file" checkbox in the Print dialog, or was it a custom printer?

Firefox 69 now uses the Windows print dialog instead of the old custom one, so I'm a lot less familiar with its idiosyncracies and perhaps there are some new bugs there. Would be useful to get a better understanding of how it got where it got.

When I logged in on the desktop, it didn't recognise the password and I had to change it.

Which password was that, your Master Password for the local installation or your Firefox Account password?

Time to switch to chrome. Good bye.

Okay, enjoy. Let us know if you have further questions.

''thartmanski [[#answer-1257839|said]]'' <blockquote> I had tested printing to a text file on windows 10 and now the printer list has disappeared. </blockquote> Was that via a "Print to file" checkbox in the Print dialog, or was it a custom printer? Firefox 69 now uses the Windows print dialog instead of the old custom one, so I'm a lot less familiar with its idiosyncracies and perhaps there are some new bugs there. Would be useful to get a better understanding of how it got where it got. <blockquote>When I logged in on the desktop, it didn't recognise the password and I had to change it.</blockquote> Which password was that, your Master Password for the local installation or your Firefox Account password? <blockquote>Time to switch to chrome. Good bye.</blockquote> Okay, enjoy. Let us know if you have further questions.
Помогла ли вам это? 0
Цитата
gug 0 решений 1 ответов
Размещено

tonka-t said

Howdy :) Not sure if the workaround works, problem, if still there takes place randomly. Also tried another trick withing config:about but as the questions states; "Why" is the big question more than anything else. Cheers for your help though. Most appreciated and added to my fix list :)
''tonka-t [[#answer-1228403|said]]'' <blockquote> Howdy :) Not sure if the workaround works, problem, if still there takes place randomly. Also tried another trick withing config:about but as the questions states; "Why" is the big question more than anything else. Cheers for your help though. Most appreciated and added to my fix list :) </blockquote>
Помогла ли вам это?
Цитата
Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.