Changing Paper size
- From: felrayes@xxxxxxxxxxxxxxx
- Date: Mon, 21 Apr 2008 06:48:48 -0700 (PDT)
Hello,
Does anyone know how we can change the paper size for the current
active printer?
I need to change the paper size to a well known size (not a custom
size).
I tried something like the following:
PrinterSettings ps = new PrinterSettings();
ps.PrinterName = "MyPrinterName";
PrinterConfiguration pc = new PrinterConfiguration();
PageSettings paS = new PageSettings(ps);
for (int count = 0; count < ps.PaperSizes.Count; count++)
{
if (condition)
{
paS.PaperSize = ps.PaperSizes[count];
pc.ChangePrinterPaperSize("MyPrinterName",
paS.PaperSize);
paperSize = paS.PaperSize;
break;
}
}
Your help is greatly appreciated.
Ferass
.
- Follow-Ups:
- Re: Changing Paper size
- From: Jonathan West
- Re: Changing Paper size
- Prev by Date: Processing Lists in Word 2007 (Word to html conversion using XSL-S
- Next by Date: Which Office 2007: Professional or Ultimate?
- Previous by thread: Processing Lists in Word 2007 (Word to html conversion using XSL-S
- Next by thread: Re: Changing Paper size
- Index(es):
Loading