Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to print to multiple devices

Posted on 2004-11-01
Medium Priority
Last Modified: 2010-04-06
I know this sounds screwed up, but I am writing a website that will print to 3 printers.

Process flow is such:

user enters data.
If user inputs a certain field, system prints to (printer 1). In this case, a label to go on an item.
system will always then print to (printer 2). This will always be a label to go on a carton
after x many times, the system will then print to (printer 3). Thsi will be a label to go on a case.

I know I can get the machine to pull up the selection with a window.print() but I am needing it to be automated. I do not mind hard coding the printer names in if anyone can give me an idea of how to do this.
Question by:bhrobinson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 12470490

There is only very limited easy printing available from browser. window.print() is about it;

so you have 2 choices:

1) if the webserver is in the same location as user, you may want to print from server, rather than from user.

Ie. the user clicks on print, the web server prepares the printout, but instead of sending to browser, sends to printer(s) directly.
The problem is usually that you can't print an HTML page to a printer directly -- it will come out as text file with all the tags, so some print filtering will be needed.
I don't know what are you using: ASP/PHP or whatever.
About PHP see: http://www.php.net/manual/en/ref.printer.php

2) find some Java applet or ActiveX control to do the job.
I am afraid I do not have it exactly, but I remember you can insert some HTML <embed> or <object> code in page, which will try to run Windows built-in ActiveX(?) for printing, and have better printing control there.
It will only run on Windows/Internet Explorer combo though; and I think it requires the user to set some browser security settings lower.

Alternative is to find a Java applet for that - that could be a bit more portable, if that's a concern.

Author Comment

ID: 12472532
Excellent info.

As for the server, unfortunately that is not an option. I am collecting the info into a db at a seperate location. Otherwise I would have spit it out in Access and been done with it.

If you can locate the Jav or ActiveX, it is greatly appreciated. That is where I am stuck!

Thanks again.
LVL 53

Assisted Solution

COBOLdinosaur earned 1000 total points
ID: 12472714
This is the most commonly used activex solution for printer problems.  I don't know it will solve you rspecific problem.  If not you made have to have some kind of custom control built.


Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 12473884
Awesome answer, but I am looking for a one time cost solution. Not a fan or the revolving billing....


Accepted Solution

suramsureshbabu earned 1000 total points
ID: 12479859

Expert Comment

ID: 12479864

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question