X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

Print each frame is gone sice FF 69. How can I get it back?

Veröffentlicht

In the print dialog box the option 'print each frame' is gone. As someone asked, you can do a right click and print a selected frame. But that's a whole different thing. I want to print all frames on the page at once. I use a PC , if that makes a difference

So how can I get it back? Or do I need to switch browser?

In the print dialog box the option 'print each frame' is gone. As someone asked, you can do a right click and print a selected frame. But that's a whole different thing. I want to print all frames on the page at once. I use a PC , if that makes a difference So how can I get it back? Or do I need to switch browser?
Zitieren

Mehr Details zum System

Anwendung

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

Weitere Informationen

jscher2000
  • Top 10 Contributor
8638 Lösungen 70676 Antworten
Veröffentlicht

Hi info437, sorry about this change. They are overhauling the print code and felt this was obsolete. One of the arguments was "...Chrome, Safari, IE, Edge which haven't had frameset specific UI for many years."

Maybe there is some other way to do it without having to discover the frames by right-clicking.

Is there a particular example page online (account/login not required) that would serve as a good example for testing?

Hi info437, sorry about this change. They are overhauling the print code and felt this was obsolete. One of the arguments was "...Chrome, Safari, IE, Edge which haven't had frameset specific UI for many years." Maybe there is some other way to do it without having to discover the frames by right-clicking. Is there a particular example page online (account/login not required) that would serve as a good example for testing?
Hat Ihnen das weitergeholfen?
Zitieren

Fragesteller

Thanks for your reply!

I noticed that Chrome, Edge and Opera doesn't support this either. It seems like IE support it thou. The argument you mention its quite poor, but perhaps that is only my opinion.

I use it to do a batch print of multiply invoices. But I guess you could use https://www.tutorialspoint.com/cg/assets/VG5bWe.php as a test page.

If you want to check if something can be change in the settings or config in FF and need a little less cluttered example page, I will be happy to upload one for you.

Thanks for your reply! I noticed that Chrome, Edge and Opera doesn't support this either. It seems like IE support it thou. The argument you mention its quite poor, but perhaps that is only my opinion. I use it to do a batch print of multiply invoices. But I guess you could use https://www.tutorialspoint.com/cg/assets/VG5bWe.php as a test page. If you want to check if something can be change in the settings or config in FF and need a little less cluttered example page, I will be happy to upload one for you.
Hat Ihnen das weitergeholfen?
Zitieren
jscher2000
  • Top 10 Contributor
8638 Lösungen 70676 Antworten
Veröffentlicht

Hilfreiche Antwort

That is a hideous page but it let me work out an idea for a workaround. That would involve:

(1) Temporarily set Firefox to "silent" printing so you aren't required to confirm each print with a click in the Print dialog.

(2) Run a "print all frames" script that marches through the top level frames in the window and prints each one in turn.

And now, the somewhat messy details.

For #1:

You'll create a new preference in about:config set to true; you can set it to false when you want to return to regular printing.

(0) Select and copy the new preference name:

print.always_print_silent

(1) In a new tab, type about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box above the list, type or paste silent to give yourself an uncluttered view.

(3) Right-click in the blank space and click New, then Boolean.

  • In the little dialog that comes up, paste the preference name and click OK.
  • Click true and then click OK. (If you do not get the options of true and false, you might not have selected Boolean, so cancel and start again.)

Now the preference should appear. To switch between true and false in the future, double-click the preference.

For #2:

Please skim through the following discussion, then see the next reply for a faster way to run this script.

The following script could be executed in the Web Console. The first time you paste a script into the Web Console, Firefox will ask you to take a step to confirm you understand it's potentially dangerous to run scripts from strangers:

var f=-1;
function printNext(){
  f+=1; // compute new frame index
  if(f<window.frames.length){
    // create afterprint event listener in this frame
    window.frames[f].addEventListener('afterprint', function(){window.parent.setTimeout(printNext, 500)});
    // print the frame
    window.frames[f].print();
  }
}
printNext();

When I execute that, for some reason, I get the following dialog between prints and I have to click Cancel each time:

I don't know if there is a way to turn that off, or a way to modify the script to avoid it.

Note: This script is unlikely to work with cross-domain frames, and it might halt when it hits one. Hopefully that isn't relevant to your invoice scenario (framed documents on the same server as the top level frameset document).

That is a hideous page but it let me work out an idea for a workaround. That would involve: (1) Temporarily set Firefox to "silent" printing so you aren't required to confirm each print with a click in the Print dialog. (2) Run a "print all frames" script that marches through the top level frames in the window and prints each one in turn. ''And now, the somewhat messy details.'' '''For #1:''' You'll create a new preference in about:config set to true; you can set it to false when you want to return to regular printing. (0) Select and copy the new preference name: print.always_print_silent (1) In a new tab, type '''about:config''' in the address bar and press Enter/Return. Click the button accepting the risk. (2) In the search box above the list, type or paste '''silent''' to give yourself an uncluttered view. (3) Right-click in the blank space and click New, then Boolean. * In the little dialog that comes up, paste the preference name and click OK. * Click true and then click OK. ''(If you do not get the options of true and false, you might not have selected Boolean, so cancel and start again.)'' Now the preference should appear. To switch between true and false in the future, double-click the preference. '''For #2:''' '''''Please skim through the following discussion, then see the next reply for a faster way to run this script.''''' The following script could be executed in the Web Console. The first time you paste a script into the Web Console, Firefox will ask you to take a step to confirm you understand it's potentially dangerous to run scripts from strangers: <pre>var f=-1; function printNext(){ f+=1; // compute new frame index if(f&lt;window.frames.length){ // create afterprint event listener in this frame window.frames[f].addEventListener('afterprint', function(){window.parent.setTimeout(printNext, 500)}); // print the frame window.frames[f].print(); } } printNext(); </pre> When I execute that, for some reason, I get the following dialog between prints and I have to click Cancel each time: <img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2019-09-10-17-04-42-ac5e33.png"> I don't know if there is a way to turn that off, or a way to modify the script to avoid it. Note: This script is unlikely to work with cross-domain frames, and it might halt when it hits one. Hopefully that isn't relevant to your invoice scenario (framed documents on the same server as the top level frameset document).

Geändert am von jscher2000

Hat Ihnen das weitergeholfen? 1
Zitieren
jscher2000
  • Top 10 Contributor
8638 Lösungen 70676 Antworten
Veröffentlicht

Hilfreiche Antwort

I posted a bookmarklet version of the script for easier use -- you add it to a convenient spot on your bookmarks toolbar or menu and click the bookmark to run the script.

https://www.jeffersonscher.com/res/sumomarklets.html#printframes

(I used this test page: https://www.jeffersonscher.com/res/frames3.html)

I posted a bookmarklet version of the script for easier use -- you add it to a convenient spot on your bookmarks toolbar or menu and click the bookmark to run the script. https://www.jeffersonscher.com/res/sumomarklets.html#printframes (I used this test page: [https://www.jeffersonscher.com/res/frames3.html])

Geändert am von jscher2000

Hat Ihnen das weitergeholfen? 1
Zitieren

Fragesteller

Thank you so much for your help. Its greatly appreciated.

Since I'm not the only user I need it to be a bit more user friendly. The popup dialog box was a bit confusing for some users.

So I did a rollback to FF ESR. And I will re-code that part of site so it doesn't use frames, so I can go back to the regular FF.

Thank you so much for your help. Its greatly appreciated. Since I'm not the only user I need it to be a bit more user friendly. The popup dialog box was a bit confusing for some users. So I did a rollback to FF ESR. And I will re-code that part of site so it doesn't use frames, so I can go back to the regular FF.
Hat Ihnen das weitergeholfen?
Zitieren
jscher2000
  • Top 10 Contributor
8638 Lösungen 70676 Antworten
Veröffentlicht

I think the dialog comes from the script performing certain actions repeatedly without any user action in between. I'm glad to hear you have options!!

I think the dialog comes from the script performing certain actions repeatedly without any user action in between. I'm glad to hear you have options!!
Hat Ihnen das weitergeholfen?
Zitieren
Stellen Sie eine Frage

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.