one in Windows 7 and one in Windows 10.
I found that the print out in Windows 7 is normal,
But that one in Windows 10 is enlarged and the content is out of the boundary
The paper size is 72mm x 200mm and here is the code
- Code: Select all
foreach (PaperSize psize in document.PrintDocument.PrinterSettings.PaperSizes)
{
if (psize.PaperName.Contains("72mm x 200mm"))
{
document.PrintDocument.DefaultPageSettings.PaperSize = psize;
section.PageSetup.PageSize = new SizeF(psize.Width, psize.Height);
break;
}
}
document.PrintDocument.Print();
Is there any solution to solve it?