Where am i wrong? When i select the paper size it doesn't change the size in the document
pageSetupDialog1->PageSettings = gcnew System::Drawing::Printing::PageSettings;
pageSetupDialog1->PrinterSettings = gcnew System::Drawing::Printing::PrinterSettings;
pageSetupDialog1->ShowNetwork = false;
System::Windows::Forms::DialogResult result = pageSetupDialog1->ShowDialog();
if (result == System::Windows::Forms::DialogResult::OK)
{
printDocument1->DefaultPageSettings->PaperSize = pageSetupDialog1->PageSettings->PaperSize;