Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The problem is Printer preferences are modified (not sure of the root cause) in the PC. We are trying to set default values in the Printer Preferences.The below fields needs to be set.

Ribbon:
Print on Both Sides:
Black Panel:

Is there a way to load/set the default settings into Registry?so that every time the Printing is started,it will refer the registry settings and print accordingly.

What I have tried:

Has searched in net,The other printer settings can be set in the code like orientation, paper size,etc. BUt the above fields are not visible in Printersettings class.

We are having a dll from 3rd party(Zebra Printer) called dynamically (DllImport) in the code. But not able to view the Properties/functions in the dll. Not able to add the Dll in any project file also.

Can we set these values in Registry?

Need a solution for the issue.
Posted
Updated 16-Jun-16 5:19am
v2
Comments
Richard Deeming 16-Jun-16 11:34am    
Is this printer connected to the server?
Sergey Alexandrovich Kryukov 16-Jun-16 15:01pm    
Good question :-)
—SA
Ram Balaji.A 17-Jun-16 10:04am    
NO not in server, the Printer is directly plugged into the PC.
Richard Deeming 17-Jun-16 18:30pm    
Then you're out of luck. As the comment below says, code running on the server has no access to hardware connected to the client.
F-ES Sitecore 16-Jun-16 11:43am    
You've tagged this as asp.net so if you are wanting to control the client's printing preferences from asp.net code then you can't. It would be a nightmare if websites could amend your printer preferences.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900