Solved

Toggle Print to File on Print Driver C#

Posted on 2009-07-13
2
477 Views
Last Modified: 2013-12-01
I am trying to automate a 3rd party application I  need to be able to toggle the print to file option of my printer driver on/off.  Since I am automating a 3rd party application, I do not have access to the PrintDocument which has this ability.

How would I go about doing this?
0
Comment
Question by:searchei68
2 Comments
 
LVL 21

Accepted Solution

by:
MogalManic earned 500 total points
ID: 24853258
You could use the SendKeys API and control the 3rd party Dialog box:
  http://www.codeproject.com/KB/cs/SendKeys.aspx
0
 

Author Closing Comment

by:searchei68
ID: 31602859
Thanks, I actually just ran across the same article as I received notification of you email.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

830 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