setup specific printing requirements
I have an Adobe application within flashplayer. The application is to print data to a Dymo Label printer. I have been able to create some settings for margins, background colour etc. What I also need to do is specify the printer (locally installed Dymo that may or may not be the windows default printer) And to set the label size to the 30374 label specification.
My mozilla.cfg file as it currently is: // lockPref("network.proxy.type", 5); pref("print_margin_bottom", "0"); pref("print_margin_left", "0"); pref("print_margin_right", "0"); pref("print_margin_top", "0"); pref("print.print_bgcolor", true); pref("print.print_bgimages", true); pref("print.print_footercenter", ""); pref("print.print_footerleft", ""); pref("print.print_footerright", ""); pref("print.print_headercenter", ""); pref("print.print_headerleft", ""); pref("print.print_headerright", ""); pref("print.always_print_silent", false); pref("print.save_print_settings",true); pref("network.negotiate-auth.delegation-uris", "http://,https://"); pref("network.negotiate-auth.trusted-uris", "http://,https://"); pref("network.http.use-cache", false)
所有回覆 (3)
If you cannot see any content on pages you printed or in print preview, the cause might be margins which are set too high.
- In order to check the margins, we need to go to File > Page Setup.
- Once this is done, switch to the Margins & Header/Footer tab.
- Check what's set there under Margins.
The following are the default values for Margins:
Right: 12.7
Top: 12.7
Left: 12.7
Bottom: 12.7
Check these values accordingly and change them if necessary.
His margin settings are all set to zero via the mozilla,cfg file, how is that helpful? Also, all those 12.7mm settings are not applicable when the user is using US paper types, which AFAIK includes labels. I have done labels, both sheet and continuous, and also business cards thru Open Office & Libre Office - they both defaulted to US inch measurements when setting up the "forms". I assume Firefox would work the same.
MarkLilly,
I'm curious if you have tried that mozilla.cfg file already, and verified that all those print prefs work as you intend?
As far as setting the Dyno printer as the default in Firefox and whether it is the default in Windows or not .... Firefox defaults to the "last used" regardless of the settings in Windows (or any operating system, for that matter).
And I'm not sure if setting the Dymo as the default in Firefox can be done via the mozilla.cfg file. We'll have to wait for someone with more experience in that area to "weigh-in" here.
Hi Thanks for the responses. The margin settings are intended to be zero.
I'm going to try the following settings, the numbers are in metric and I think they probably need to be in imperial as the-edmeister states. Will test it both ways. I am also unsure if I can point to a shared printer this way. Ill try using a local installed label printer also
pref("print.printer_\\caa3280\DYMO LabelWriter 400.print_paper_height", 89) pref("print.printer_\\caa3280\DYMO LabelWriter 400.print_paper_width", 51)