I changed the Unit Of Metrics to Centimeter, Millimeter and inch but it only gives the pagesize width & Height in One-hundred of inches, So:
In FormA_Load
{
PageSettings pgSting = new PageSettings();
lblPaperSizeReslt.Text = "Width: " + ((Math.Round((double)pgSting.PaperSize.Width, 2)) / 100).ToString() + "In" +
" × " + "Height: " + ((Math.Round((double)pgSting.PaperSize.Height, 2)) / 100).ToString() + "In";
}
And also on a button click:
private void xBtnPrntrSetup_Click(object sender, EventArgs e)
{
PrintDialog pd = new PrintDialog();
pd.ShowDialog();
lblPaperSizeReslt.Text = "Width: " + ((Math.Round((double)pd.PrinterSettings.DefaultPageSettings.PaperSize.Width,2))/100).ToString() +"In"+
" × " + "Height: " + ((Math.Round((double)pd.PrinterSettings.DefaultPageSettings.PaperSize.Height,2))/100).ToString()+ "In";
}
This may be simple for somebody but also may save some others time. I hope this help.