Adding papersize has wrong dimentions
Posted: Wed May 19, 2021 9:41 pm
I am using the below code to add a custom paper size of 1" x 2". The new size shows up in the dropdown, but has the size of 8.5 x 11. If I set the Kind to Stimulsoft.System.Drawing.Printing.PaperKind.LetterSmall, it still shows 8.5 x 11.
Code: Select all
var newpapersize = new Stimulsoft.System.Drawing.Printing.PaperSize(Stimulsoft.System.Drawing.Printing.PaperKind.Custom ,"1 x 2 label", 1, 2);
var papersizes = new Stimulsoft.System.Drawing.Printing.PrinterSettings.PaperSizeCollection();
papersizes.add(newpapersize);