Print with custom page size and preview settings for IE / Firefox / Safari

I'm currently trying to add Print Shortcut functionality. After clicking the button, the print preview dialog should open and print in the label format (which is different and hidden from the screen).

I tested on Chrome, IE, Firefox, and Safari on Windows 7. However, only chrome works as expected, printing at the expected page size and style. For IE and Firefox, although the label format remains unchanged when saved to PDF, I can only print at page size (default), which means a disaster when I use a label printer to print. When I try to change the page size to the size of the custom label, IE crashes while Firefox does not allow me to open properties in the system print dialog. For safari (IN WINDOWS), I can print tags in a custom size, however I cannot delete the header and footer, resulting in the label format being split into many pages.

I have questions:
1. Is the shortcut's own size the culprit, or is it due to limitations of other browsers?
2. How to remove headers and footers in Safari (windows)? My conclusions are pessimistic about this ...
3. Are there any ways for me to create a print preview dialog, and not a print dialog, for other browsers? (Something like chrome)
4. Are there any ways to use Javascript to set print options, install the printer on a label printer, and change the page size to fit the custom label?

Thank you if anyone can enlighten me.

+5
source share

No one has answered this question yet.


All Articles