Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Printer Definitions

Posted on 2011-09-19
5
178 Views
Last Modified: 2012-05-12
I am designing a program where I want the user to be able to define their own printer definitions, so they will select a printer, have the option of launching the default properties dialog or specify their own values such as paper size orientation etc.

I then want to call a program such as word, run a mail merge and pass in a user defined printer definition, is this possible and does anyone have any resources available for it?
0
Comment
Question by:rocky050371
  • 3
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 36559662
0
 

Author Comment

by:rocky050371
ID: 36559933
Thanks, I really need the ability to define printer definitions on top of this.
0
 
LVL 15

Expert Comment

by:x77
ID: 36560623
CodeProject: Changing printer settings using C#

http://www.codeproject.com/KB/dotnet/NET_Printer_Library.aspx

I do´n like this.
It Change the DeviceMode to a specific Printer.

Note that you can go to Printer Folder, Double-Click on any Printer an Change Default Properties for printer.
Also you can Call This Dialog for any Printer From you Vb code.
You Can do it executint RunDll:

      %windir%\system32\rundll32.exe Printui.dll,PrintUIEntry /o /n PrinterName

Or you can use methods Declared on  Printui.dll from your code.
0
 
LVL 15

Expert Comment

by:x77
ID: 36560873
Printui Doc

Note That you can:

   /Ss Store printer settings into a file
   /Sr Restore printer settings from a file
0
 
LVL 15

Expert Comment

by:x77
ID: 36560968
You can configure the Printer and then save the Printer settings to a file:

Store all printer settings into a file:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Ss /n "printer" /a "file.dat"

Then from Your Program you can restore it Executing:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n "printer" /a "file.dat"

Note that Printer is the Printer Name.

0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question