What does your print code look like?
If your page size settings have been setup propertly in the Control Panel,
it should just be a matter of finding the PaperSize object in the
PrinterSettings property's PaperSizes property and assigning it to the
PrintDocument.PaperSize property. e.g.:
System.Drawing.Printing.PrintDocument printDocument = new
System.Drawing.Printing.PrintDocument();
System.Drawing.Printing.PageSettings pageSettings = new
System.Drawing.Printing.PageSettings();
// ...
foreach (System.Drawing.Printing.PaperSize paperSize in
printDocument.PrinterSettings.PaperSizes)
{
if (paperSize.PaperName == "A4")
{
pageSettings.PaperSize = paperSize;
}
}
--
http://www.peterRitchie.com/
"Agnoletto Christian" wrote:
Hi,
i create a particolar papername on my printer.
Now i need to print on it.
I try to select this papername as default for the printer but when i print
in the dialog box the paper kind is A4 and not "Ricevute".
How can i force this paper size?
Thank's
Christian