Hi all,
I want to change paper size to A4, but I don't know how to do it.
I tried to do in this way:
printDocument.DefaultPageSettings.PaperSize.PaperName
= "PaperA4";
but got an exception "Can't change a PaperSize unless its Kind is Custom", then I tried to change that PaperKind:
System.Drawing.Printing.PaperKind kind =
System.Drawing.Printing.PaperKind.A4;
// some Code here //
printDocument.DefaultPageSettings.PaperSize.Kind = kind;
but that "..PaperSize.Kind" is read only.
Maybe someone has some IDEAS ???
I want to change paper size to A4, but I don't know how to do it.
I tried to do in this way:
printDocument.DefaultPageSettings.PaperSize.PaperName
= "PaperA4";
but got an exception "Can't change a PaperSize unless its Kind is Custom", then I tried to change that PaperKind:
System.Drawing.Printing.PaperKind kind =
System.Drawing.Printing.PaperKind.A4;
// some Code here //
printDocument.DefaultPageSettings.PaperSize.Kind = kind;
but that "..PaperSize.Kind" is read only.
Maybe someone has some IDEAS ???