Re: Printing to file without PrintDialog

Tech-Archive recommends: Fix windows errors by optimizing your registry



Franlin,

On the PrintDocument class, have you changed the PrintToFile and
PrintFileName properties exposed by the PrinterSettings property? You
should be able to set these to indicate you want to print to a file (without
using a PrintDialog).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Franlin W" <wfka@xxxxxxxxxxxx> wrote in message
news:doefbj$7g1$1@xxxxxxxxxxxxxxxxxxxxx
> Is it possible to print directly to file without PrintDialog or
> PrintPreviewDialog?
>
> Have any succeeded to program this feature?
>
> Cheers,
>
>


.