Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Direct to chosen printer

Posted on 2006-03-29
10
Medium Priority
?
315 Views
Last Modified: 2010-08-05
Hello everybody,

I have a big dificulty with printing issue. I allready search the net but the answers i saw can't seem to get it right.. i'm posting in general webdev because i dont know wich language code will resolve my problem..
This is for an intranet made in php(html and javascript of course) and works with MsSql. Its not for outside www. I'm telling this because what i want will brake the web security for sure, because certenatly i have to use ActiveX and maibe vbscript.. maibe.. i don't know...
I need to print directly to the printer an html page without the prompt window, and i need to select to wich printer i send the web page from the "html" code(or something else).
I know that its impossible with javascript, but i know that with vbscript we can interact more with the browser settings and other stuff.
Is it possible? It can be vbscript, java, php, whatever, i just need to make it work.
The language i use to code is php, but i don't think that the php printer functions can resolve this...

thx in advanced
0
Comment
Question by:justaphase
8 Comments
 
LVL 10

Expert Comment

by:aplimedia
ID: 16320820
Hi,

You will not be able to decide on behalf of the local user which printer you want them to use. the best you can use is the window.print() javascript function.

regards

Aplimedia
0
 
LVL 1

Author Comment

by:justaphase
ID: 16322166
I know there's a way Aplimedia... not with normal coding like html or javascript.
An example i have is that u can´t remove the headers and footers from a print page automaticaly with html coding or javascript, but u can with vbscript... i just don´t know how to chose a printer and print directly with vbscript or pure java or some other language that works as an ActiveX object..
0
 
LVL 7

Accepted Solution

by:
bubbledragon earned 1000 total points
ID: 16323885
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:justaphase
ID: 16340759
i've been studing the templateprinter from microsoft from the link you gave but, as allways microsoft add to do some of their own mustakes... http://support.microsoft.com/default.aspx?scid=kb;en-us;308649

i'm really getting stuck... and i really have to do this :(
0
 
LVL 4

Expert Comment

by:noamattd
ID: 16355298
justaphase: There is no way to do this.  It would be a huge security hazard if you could use scripts to print automatically (think of a site that tried to print out 10000 pages of gibberish or porn).  The best you can do is have it automatically take them to the printer-selection/print setup dialog.
0
 
LVL 1

Author Comment

by:justaphase
ID: 16361311
i know that it is a big security hazard noamattd, i post this question here just to know if there is an alternative with some web language that would ask me to install a certification or an applet, or an ActiveX and the client would be responsible for that script action... should never be something to break trought security, its not my goal... i'm not an hacker if that's what u thinkin :D
0
 
LVL 1

Author Comment

by:justaphase
ID: 16361360
Guess this question shouldn't be here. I allready put this question in the apropriate topic, this should closed or deleted, i forgot how to do this...
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 1000 total points
ID: 16572127
1. ScriptX from
http://www.meadroid.com/
or
2. WSH - no problem on intranet/web applications
http://www.google.com/search?q=wsh+printer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

564 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