PDA

Click to See Complete Forum and Search --> : How do I check "Print to file" checkbox on the print common dailog


ramj
Jan 24th, 2000, 10:17 PM
And also to set the filename in the inputbox that follows. Essentially I am trying to print to a file without the need for user intervention.

If anyone know then it would be a great help !!!

Troy Mac
Jan 25th, 2000, 01:19 AM
Here you go! There are a lot of flags that can be set if you have MSDN search on Flags and find Print Dialog
CommonDialog1.FLAGS = cdlPDPrintToFile
CommonDialog1.ShowPrinter

ramj
Jan 25th, 2000, 07:03 PM
Thanks for that. One more thing:

Any ideas on how I can go about programmatically filling in the filename dialog box which appears after the checkbox has been checked.

Many thanks for the help so far.

Raj.