I am currently opening the PrintDialog
where user can select printer setting and do the printing.
At the moment I am using below code
var files = Directory.GetFiles(sourceFolder);
foreach (var file in files)
{
var pdoc = new PrintDocument();
var pdi = new PrintDialog
{
Document = pdoc
};
if (pdi.ShowDialog() == DialogResult.OK)
{
pdoc.DocumentName = file;
pdoc.Print();
}
}
Is there a way to send all the files to the printer by using PrintDialog
once. So the user can select the folder and set one print setting for all the documents inside the folder and then do the printing?