I want to save the page setup dialog setting because I want the user to choose the setting one time
and this setting will be constant for the application


I searched for this but I didn't find any thing

or I want to set the page setup dialog setting by code
this is my code but it didn't change any thing

PageSetupDialog pageSetupDialog1 = new PageSetupDialog();
            PageSettings settings = printDocument1.DefaultPageSettings;
            PaperSize pz = new PaperSize("Envelope B5", 15, 6);
pageSetupDialog1.PageSettings = settings;
pageSetupDialog1.PageSettings.PaperSize = pz;
printDocument1.DefaultPageSettings = pageSetupDialog1.PageSettings;
            printDocument1.Print();

Thank you
it is very helpful article

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.