Solved

Toggle Print to File on Print Driver C#

Posted on 2009-07-13
2
474 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now