4, December 2008

Javascript and print - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Javascript and print
« previous next »
Pages: [1] Print

Author Topic: Javascript and print  (Read 931 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1523
6847 credits
Members referred : 8


Gimme all your cookies!!!


« on: Oct 07, 2005, 06:23:54 AM »

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


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8269
42601 credits
Members referred : 3



« Reply #1 on: Oct 08, 2005, 01:21:23 PM »

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 Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1523
6847 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #2 on: Oct 08, 2005, 04:05:46 PM »

 Sad

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


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8269
42601 credits
Members referred : 3



« Reply #3 on: Oct 08, 2005, 10:55:59 PM »

Propably this is the best, except if you can afford hiring a visual basic (or something simmilar) programmer

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1523
6847 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #4 on: Oct 09, 2005, 02:06:00 AM »

I will tell them that they must stop being lazy!  Grin


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8269
42601 credits
Members referred : 3



« Reply #5 on: Oct 09, 2005, 02:43:35 PM »

Hehehe. That's a nice one too Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=518
Tags : javascript Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Javascript and print
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 04, 2008, 05:54:50 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.