Solved

How to print to multiple devices

Posted on 2004-11-01
159 Views
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.
0
Question by:bhrobinson
    6 Comments
     
    LVL 3

    Expert Comment

    by:gnudiff

    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.
    0
     

    Author Comment

    by:bhrobinson
    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.
    0
     
    LVL 53

    Assisted Solution

    by:COBOLdinosaur
    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.

    http://www.meadroid.com/scriptx/index.asp

    Cd&
    0
     

    Author Comment

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

    0
     
    LVL 7

    Accepted Solution

    by:
    0
     
    LVL 7

    Expert Comment

    by:suramsureshbabu
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    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 learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    846 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

    Need Help in Real-Time?

    Connect with top rated Experts

    5 Experts available now in Live!

    Get 1:1 Help Now