0

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();

Edited by compovet: n/a

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by compovet
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.