Sublime directory Surf the web anonymous Pagerank Monitor


Javascript and print

wineo
Fri 7 October 2005, 05:23 am GMT +0200
Right, let me throw a tricky one at all of you...

I am trying to find or make a script (probably javascript) that will open a certain file and print that file on different printers. I will give you an example... The link must download and open a .pdf file and then print the front page on one printer (colour + special paper), then print the second page on another printer (colour + plain paper), and finally print the remainder of the document on a laser printer.

Sounds impossible, but I am sure that someone knows something about this or can find one...

wineo

Nikolas
Sat 8 October 2005, 12:21 pm GMT +0200
I don't think that you can do that with javascript. You can do this only by using a vb or c++ program that runs in windows, or propably an active x component.

That is because when the user is redirected to a print page, must choose the printer settings.

On the other hand even if you could choose the settings, you should be able to detect the user's settings(printer names etc.) This is impossible to be done with javascript.

Sorry if I dissapoint you :)

wineo
Sat 8 October 2005, 03:05 pm GMT +0200
 :(

I think that I will tell them to simply put in some effort and download the document and print off the parts of the document themselves!

Thanks anyway,
wineo

Nikolas
Sat 8 October 2005, 09:55 pm GMT +0200
Propably this is the best, except if you can afford hiring a visual basic (or something simmilar) programmer

wineo
Sun 9 October 2005, 01:06 am GMT +0200
I will tell them that they must stop being lazy!  ;D

Nikolas
Sun 9 October 2005, 01:43 pm GMT +0200
Hehehe. That's a nice one too :)

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional