Sign in to follow this  
Followers 0
JohnMC

Print control

3 posts in this topic

#1 ·  Posted (edited)

Ive looked around for info about programaticly printing something and im finding little information. i dont know if this is something that can be solved with a windows configuration im not aware of or if i need to do some advanced automation. my issue is basicly that i would like to have multiple printers installed on a single pc and have a have different programs each see a different printer as 'default'. in one situation i want to print a weather report using IE automaticly to a certain printer, but not all pages.

in adition i would also like to control what pages print and # of copies, this doesnt seem to hard but id have to use the GUI contols, however the printer selection control doesnt seem to have a way to control it reliably.

thank for any ideas!

==UPDATED==

Im working on some functions to help with these problems i have, here is a roughdraft incase someone stumbles upon this thread. 2 of the functions are from Martins script and the 3rd is my own.

_GetDefaultPrinter()

_PrinterSetAsDefault($PrinterName)

_PrintDialogWait($sPrinter="",$sPages="",$sCopies="",$sProssess="",$iTimeout=20)

_PrintControl.au3

Edited by JohnMC

Share this post


Link to post
Share on other sites



martin posted this a couple of years ago that might help with the first part;

it will "remember"/set different default printers for whatever app has the focus

http://www.autoitscript.com/forum/index.php?s=&showtopic=49477&view=findpost&p=372896

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0