I created a application to print the invoice and challan. so generally invoice paper size is "A4" and Challan paper size is "custom".
So, When I set the paper size "A4", its print fine... but when i want to print custom paper size then it print different, from others printer and it print the multiple pages.
My code is :-
DialogResult dr = MessageBox.Show("Do You Want to Print?", "Print", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == DialogResult.Yes)
printDocument1.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("Custom", 670, 846);
printDocument1.PrinterSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("Custom", 670, 846);
It happens on "HP Leserjet 1015"
Thanks in advanced..
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)