Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Set margins for all printers in terminal server

  • No replies
  • 4 have this problem
  • 2 views
more options

Hello, I installed Firefox 3.6.13 into a Terminal Server environment and I want to set all margins to 0 for all printers (redirected too).

I modified firefox configuration in order to load a custom file of preferences with the following:

pref("print.print_headerleft", ""); pref("print.print_headercenter", ""); pref("print.print_headerright", ""); pref("print.print_footerleft", ""); pref("print.print_footercenter", ""); pref("print.print_footerright", ""); pref("print.show_print_progress", true); pref("print.print_shrink_to_fit", false); pref("print.print_scaling", "1,00"); pref("print.print_margin_top", 0); pref("print.print_margin_left", 0); pref("print.print_margin_right", 0); pref("print.print_margin_button", 0); pref("print.print_unwriteable_margin_top", -1); pref("print.print_unwriteable_margin_left", -1); pref("print.print_unwriteable_margin_right", -1); pref("print.print_unwriteable_margin_bottom", -1);

And scaling, shrink and headings works fine, but if I start a user session and go to Page Configuration, the margins are set to 17.5mm. I can change them, and if I save it, the next lines are added to the prefs.js (in the user profile under appdata): user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_bgcolor", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_bgimages", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_evenpages", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footercenter", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footerleft", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footerright", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headercenter", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headerleft", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headerright", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_in_color", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_bottom", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_left", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_right", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_top", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_oddpages", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_orientation", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_reversed", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_scaling", " 1,00"); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_shrink_to_fit", false);

The trouble is that when the user logs off and logs in again, that redirected printer maybe is named Brother_MFC-8880DN_Printer_(5_redireccionado) (instead of 4), and will have the margins set to 12.7mm again.

I tried manually adding the following prefs to the configuration file: pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_bottom", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_left", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_right", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_top", 0);

But it doesn't work, if I go to Page configuration, they are already set to 12.7mm.

Besides, as 17.5mm are 0.5inch, I tried to look for a pref into about:config which has the value of 0.5, but I have no luck.

Any help would ve apreciated. Thanks.

Hello, I installed Firefox 3.6.13 into a Terminal Server environment and I want to set all margins to 0 for all printers (redirected too). I modified firefox configuration in order to load a custom file of preferences with the following: pref("print.print_headerleft", ""); pref("print.print_headercenter", ""); pref("print.print_headerright", ""); pref("print.print_footerleft", ""); pref("print.print_footercenter", ""); pref("print.print_footerright", ""); pref("print.show_print_progress", true); pref("print.print_shrink_to_fit", false); pref("print.print_scaling", "1,00"); pref("print.print_margin_top", 0); pref("print.print_margin_left", 0); pref("print.print_margin_right", 0); pref("print.print_margin_button", 0); pref("print.print_unwriteable_margin_top", -1); pref("print.print_unwriteable_margin_left", -1); pref("print.print_unwriteable_margin_right", -1); pref("print.print_unwriteable_margin_bottom", -1); And scaling, shrink and headings works fine, but if I start a user session and go to Page Configuration, the margins are set to 17.5mm. I can change them, and if I save it, the next lines are added to the prefs.js (in the user profile under appdata): user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_bgcolor", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_bgimages", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_evenpages", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footercenter", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footerleft", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_footerright", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headercenter", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headerleft", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_headerright", ""); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_in_color", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_bottom", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_left", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_right", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_top", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_oddpages", true); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_orientation", 0); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_reversed", false); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_scaling", " 1,00"); user_pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_shrink_to_fit", false); The trouble is that when the user logs off and logs in again, that redirected printer maybe is named Brother_MFC-8880DN_Printer_(5_redireccionado) (instead of 4), and will have the margins set to 12.7mm again. I tried manually adding the following prefs to the configuration file: pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_bottom", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_left", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_right", 0); pref("print.printer_Brother_MFC-8880DN_Printer_(4_redireccionado).print_margin_top", 0); But it doesn't work, if I go to Page configuration, they are already set to 12.7mm. Besides, as 17.5mm are 0.5inch, I tried to look for a pref into about:config which has the value of 0.5, but I have no luck. Any help would ve apreciated. Thanks.