How do I set a default printer for a specific program?

By krisspike131 ·
I have two printers at my office, one of which is stocked with forms. I would like to print with the program that fills out the forms without having to switch printers every time I open the program. Please advise. (windows XP) thanks.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

You should

by voldar In reply to How do I set a default pr ...

create a batch file that contains the following :

- one line with a command to setup the desired printer by default;
- one line with the command that starts the application.

Then, you rename this batchfile whith the name of the program you want to use and instruct the user to click on this file to open the application.

The command to setup a printer by default is as follows :
RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "printer"
("printer" is the name of the printer you want to set by default)
You may try to use this command in the shortcut of the application, placed before the command that starts the application. It should work too, but I did not try it.

P.S. This is a trick I used a lot in a Citrix environment.

Collapse -

On the right track

by krisspike131 In reply to You should

The file extension is what is holding me back I think. It is a r2w file so I need to open it with a certain program. I copied the target info from the shortcut but it says it cannot find the target. I need to know the command to tell it what to open it with. Thanks for the help so far

Collapse -


by voldar In reply to On the right track

something :
- copy the source target from the shortcut and put it in a cmd prompt. Do you get the same error? If so, add in front of it the command "start". It should be like :
c>start "C...source target..."

Collapse -

same error

by krisspike131 In reply to Try

says "the system cannot find the path specified"

Collapse -

r2w is not an application extension.

by seanferd In reply to On the right track

If that is the form extension, it needs to be associated with the application which opens it.

Collapse -

it is assoc.

by krisspike131 In reply to r2w is not an application ...

the default is the correct prog.

Collapse -

OK,but the suggestion was to put the command

by seanferd In reply to it is assoc.

in the shortcut to the application, not the shortcut to the file. In the case that will work, you need to open the app with the modified shortcut, then load the appropriate r2w file.

I'll see if there is another way to force the printer. Are these printers connected directly to the XP machine, or over a network? If a network, is it a domain, or workgroup? Is it XP Pro or Home edition?

Related Discussions

Related Forums