|
From: Bill Nguyen on 2 Jul 2008 19:34 Herfried; This works for simple format documents. I tried to use PrintDialog to allow more options as follow but nothing printed when user clicked on "PRINT" Printdialog1.PrinterSettings.PrintFileName = "C:\Test.PDF" PrintDialog1.ShowDialog() What did I do wrong? Thanks Bill "Herfried K. Wagner [MVP]" <hirf-spam-me-here(a)gmx.at> wrote in message news:%23AuSxlEwIHA.516(a)TK2MSFTNGP04.phx.gbl... > "Laurie Scott" schrieb: >> I tried using your code but kept getting an error on the last line. So, I >> put the process.start()on the next line. >> that fixed the compiler error, but I keep getting the message "error >> opening this document. file cannot be found." > > Take a look at this code sample: > > Printing files of various types without user interaction > <URL:http://dotnet.mvps.org/dotnet/faqs/?id=printinganyfile&lang=en> > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
|
Pages: 1 Prev: Get text "literally" from a TextBox Next: connection to sql server 2005 problem |