Im using a System.Windows.Controls.PrintDialog to let the user print one or more pages from my application. This is what I currently got:
PrintDialog printDialog = new PrintDialog();
printDialog.PageRangeSelection = PageRangeSelection.AllPages;
printDialog.UserPageRangeEnabled = true;
if (printDialog.ShowDialog() == true)
{
// do print ...
}
Im looking for the option to enable the Current Page radio button in the dialog. How to enable it?
If you will decompile reference
PresentationFramework.dllby Reflector you would be able to see that this class have nothing about CurrentPage. I think this radiobutton is disabled by default in Win32PrintDialog. In WinForms this radiobutton definitely is disabled by default:I suppose that you can’t enable this radiobutton, but I can be mistaken.