I've succeeded on printing MS office documents with the office interops, but documents such as pdf, or hwp is troubling me.
Just printing those files are not that hard. This piece of code was all I needed to print.
Process process = new Process();
process.StartInfo.FileName = fileInfo.FullName;
process.StartInfo.Verb = "Print";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
But, my intention is, I want to print multiple pages of pdf or hwp in one page.(ex. four pages on a single page)
As I seached, those two formats does not support any free, unlimited privilged libraries. So, my next approach is to change the defaultprinter settings. On windows, I've found out that on the control pane, I can manually change the printer settings for duplex, or multipaged printing. How can I change this programmatically?