Print Dialog Print to file
-
Hey I know this has gotta be simple PrintDocument1.PrinterSettings.PrintToFile = True PrintDocument1.Print() I want to either set the file to have it print to, or get the file name that was typed in. Thanks in advance
-
Hey I know this has gotta be simple PrintDocument1.PrinterSettings.PrintToFile = True PrintDocument1.Print() I want to either set the file to have it print to, or get the file name that was typed in. Thanks in advance
All your doing by setting
.PrintToFIle
to Ture is enabling the little check box on the dialog that allows the user to select printing to a file. The only way your going to be able to get a filename to print to is to build a dialog yourself or use a SaveDialog. Then you'll have to handle outputting the text to the file. You can't "print" to the filename you get. Unfortunately, the Print To File functionality doesn't work. I'm hoping it'll be fixed in the next service pack for the .NET Framework, if not in .NET 2.0. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome