Home All Groups Group Topic Archive Search About
Author
11 Jun 2006 2:38 PM
fbouabcha
Hi all,
Could anyone tell me how to print to file with printdocument?

Thanks

Author
11 Jun 2006 3:48 PM
Michel Posseth [MCP]
in this case you should add a printdialog and set the
PrinterSettings.PrintFoFile Boolean property to true

Once the PrintDocument object is ready, you must pass it to the Print dialog
box. To do that, assign the name of the PrintDocument variable to the
PrintDialog.Document property.

regards

Michel Posseth [MCP]

Show quoteHide quote
"fbouabcha" <fbouab***@hotmail.com> schreef in bericht
news:ODtV9SWjGHA.3496@TK2MSFTNGP04.phx.gbl...
> Hi all,
> Could anyone tell me how to print to file with printdocument?
>
> Thanks
>
>