Solved

Toggle Print to File on Print Driver C#

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …
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…

777 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