為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Hello how can I set a default printer with JAVASCRIPT? or send directly to a printer, I'm programmer

  • 6 回覆
  • 3 有這個問題
  • 1 次檢視
  • 最近回覆由 junino007

more options

I'm programmer and I need to print 2 files in 2 different printers (labels with Zebra and letter to a sharp), I have the sharp or zebra printer by default and when I send the file to print, this take the default size of the printer default and is printed with that size, a letter like a label and a label like a letter, how can I set a printer default by JAVASCRIPT or send a file directly to a printer by JAVASCRIPT?

I'm programmer and I need to print 2 files in 2 different printers (labels with Zebra and letter to a sharp), I have the sharp or zebra printer by default and when I send the file to print, this take the default size of the printer default and is printed with that size, a letter like a label and a label like a letter, how can I set a printer default by JAVASCRIPT or send a file directly to a printer by JAVASCRIPT?

被選擇的解決方法

How does the user of your web application initiate the print function?

Are there two separate "Print" buttons on the page? One for labels to the Zebra and another printing the "letter" to the Sharp?
Or is it a sequential type function, where the label is supposed to be printed to the Zebra and the "letter" to the Sharp in one "Print" button operation?

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

How does that relate to Firefox support?

Does your app work through a web browser like Firefox?

more options

Yes, I have a web system and is working with Mozilla firefox

more options

選擇的解決方法

How does the user of your web application initiate the print function?

Are there two separate "Print" buttons on the page? One for labels to the Zebra and another printing the "letter" to the Sharp?
Or is it a sequential type function, where the label is supposed to be printed to the Zebra and the "letter" to the Sharp in one "Print" button operation?

more options

I have one button and open the 2 windows, but if a put one button for each file it's the same, I must to select the correct default printer, if i don't do this so the printed going to take the size of the printer selected.

more options

look, when I have the zebra like default, when I print the file in the other (Sharp or other common printer) this is the output

more options

Is with the label size