diff --git a/examples/commondialog/image/screenshot2.png b/examples/commondialog/image/screenshot2.png index 02466f6..a3752fa 100644 Binary files a/examples/commondialog/image/screenshot2.png and b/examples/commondialog/image/screenshot2.png differ diff --git a/examples/commondialog/source/commondialog_sample.d b/examples/commondialog/source/commondialog_sample.d index c9e7dbc..ed2bfbb 100644 --- a/examples/commondialog/source/commondialog_sample.d +++ b/examples/commondialog/source/commondialog_sample.d @@ -340,7 +340,8 @@ class MainForm : Form _document.queryPageSettings ~= (PrintDocument doc, QueryPageSettingsEventArgs e) { // User modify page settings here. - // TODO: Paper orientation cannot be changed. + if (e.currentPage == 2) + e.pageSettings.landscape = true; }; _document.printPage ~= (PrintDocument doc, PrintPageEventArgs e) {