I have several custom paper sizes defined on a printer(the printer is set as default). I need to be able to select one of these formats as the default one.
A program
The following code would set the default printer papersize:
PrintDocument pd = new PrintDocument(); pd.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("PaperA4", 840, 1180); pd.Print();
On how to print using PrintDocument you could refer this link.
Hope this helps.