If I create a simple WinForms PrintDialog as such:
PrintDialog print_dialog = new PrintDialog();
print_dialog.UseEXDialog = true;
// Setup dialog defaults
print_dialog.AllowSomePages = true; // Setting this shows a default value of "0"
print_dialog.AllowCurrentPage = true;
print_dialog.AllowSelection = false;
if (print_dialog.ShowDialog() == DialogResult.OK) {
Debug.WriteLine("Printing");
}
I get the following result, where the Page Range -> Pages has a default value of "0" (circled):
To me that looks unprofessional. Every other program I've looked at has that value blank until it is filled in by the user. Is there anything I can do to make the default show as blank?
Even if I try to hack this by attempting to set the value manually to something that might make more sense to my users than Pages: 0, such as:
print_dialog.PrinterSettings.FromPage = 1;
I get an exception: Value FromPage is out of range.
What can I do?