<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Drawing.Printing%2FPrinterSettings</id>
		<title>Csharp/C Sharp by API/System.Drawing.Printing/PrinterSettings - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Drawing.Printing%2FPrinterSettings"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Printing/PrinterSettings&amp;action=history"/>
		<updated>2026-04-30T01:39:49Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Printing/PrinterSettings&amp;diff=3954&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Printing/PrinterSettings&amp;diff=3954&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Printing/PrinterSettings&amp;diff=3955&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Printing/PrinterSettings&amp;diff=3955&amp;oldid=prev"/>
				<updated>2010-05-26T12:08:33Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==PrinterSettings.CanDuplex==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
/*&lt;br /&gt;
Professional Windows GUI Programming Using C#&lt;br /&gt;
by Jay Glynn, Csaba Torok, Richard Conway, Wahid Choudhury, &lt;br /&gt;
   Zach Greenvoss, Shripad Kulkarni, Neil Whitlow&lt;br /&gt;
Publisher: Peer Information&lt;br /&gt;
ISBN: 1861007663&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
//Need this namespace to access the Printing functionality&lt;br /&gt;
using System.Drawing.Printing;&lt;br /&gt;
namespace PrinterCaps2&lt;br /&gt;
{&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Summary description for Form1.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public class PrinterCaps2 : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        private System.Drawing.Printing.PrintDocument printDoc;&lt;br /&gt;
        private System.Windows.Forms.PrintPreviewDialog ppDialog;&lt;br /&gt;
        private System.Windows.Forms.Button btnPrint;&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required designer variable.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private System.ruponentModel.Container components = null;&lt;br /&gt;
        public PrinterCaps2()&lt;br /&gt;
        {&lt;br /&gt;
            //&lt;br /&gt;
            // Required for Windows Form Designer support&lt;br /&gt;
            //&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
            //&lt;br /&gt;
            // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
            //&lt;br /&gt;
        }&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Clean up any resources being used.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        protected override void Dispose( bool disposing )&lt;br /&gt;
        {&lt;br /&gt;
            if( disposing )&lt;br /&gt;
            {&lt;br /&gt;
                if (components != null) &lt;br /&gt;
                {&lt;br /&gt;
                    components.Dispose();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            base.Dispose( disposing );&lt;br /&gt;
        }&lt;br /&gt;
        #region Windows Form Designer generated code&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required method for Designer support - do not modify&lt;br /&gt;
        /// the contents of this method with the code editor.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
//          System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PrinterCaps2));&lt;br /&gt;
            this.printDoc = new System.Drawing.Printing.PrintDocument();&lt;br /&gt;
            this.ppDialog = new System.Windows.Forms.PrintPreviewDialog();&lt;br /&gt;
            this.btnPrint = new System.Windows.Forms.Button();&lt;br /&gt;
            this.SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // printDoc&lt;br /&gt;
            // &lt;br /&gt;
            this.printDoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDoc_PrintPage);&lt;br /&gt;
            // &lt;br /&gt;
            // ppDialog&lt;br /&gt;
            // &lt;br /&gt;
            this.ppDialog.AutoScrollMargin = new System.Drawing.Size(0, 0);&lt;br /&gt;
            this.ppDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);&lt;br /&gt;
            this.ppDialog.ClientSize = new System.Drawing.Size(400, 300);&lt;br /&gt;
            this.ppDialog.Enabled = true;&lt;br /&gt;
//          this.ppDialog.Icon = ((System.Drawing.Icon)(resources.GetObject(&amp;quot;ppDialog.Icon&amp;quot;)));&lt;br /&gt;
            this.ppDialog.Location = new System.Drawing.Point(195, 22);&lt;br /&gt;
            this.ppDialog.MaximumSize = new System.Drawing.Size(0, 0);&lt;br /&gt;
            this.ppDialog.Name = &amp;quot;ppDialog&amp;quot;;&lt;br /&gt;
            this.ppDialog.Opacity = 1;&lt;br /&gt;
            this.ppDialog.TransparencyKey = System.Drawing.Color.Empty;&lt;br /&gt;
            this.ppDialog.Visible = false;&lt;br /&gt;
            // &lt;br /&gt;
            // btnPrint&lt;br /&gt;
            // &lt;br /&gt;
            this.btnPrint.Location = new System.Drawing.Point(52, 28);&lt;br /&gt;
            this.btnPrint.Name = &amp;quot;btnPrint&amp;quot;;&lt;br /&gt;
            this.btnPrint.TabIndex = 0;&lt;br /&gt;
            this.btnPrint.Text = &amp;quot;Print&amp;quot;;&lt;br /&gt;
            this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);&lt;br /&gt;
            // &lt;br /&gt;
            // PrinterCaps2&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(176, 86);&lt;br /&gt;
            this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                          this.btnPrint});&lt;br /&gt;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;&lt;br /&gt;
            this.Name = &amp;quot;PrinterCaps2&amp;quot;;&lt;br /&gt;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;&lt;br /&gt;
            this.Text = &amp;quot;Printer Caps&amp;quot;;&lt;br /&gt;
            this.ResumeLayout(false);&lt;br /&gt;
        }&lt;br /&gt;
        #endregion&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// The main entry point for the application.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        [STAThread]&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new PrinterCaps2());&lt;br /&gt;
        }&lt;br /&gt;
        private void printDoc_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            PrinterSettings pSettings = new PrinterSettings();&lt;br /&gt;
            Font printFont = new Font(&amp;quot;Arial&amp;quot;, 12);&lt;br /&gt;
   &lt;br /&gt;
            //Use the Margins&lt;br /&gt;
            int nTextPosY = e.MarginBounds.Top;&lt;br /&gt;
            int nTextPosX = e.MarginBounds.Left;&lt;br /&gt;
            int nHeight = (int)printFont.GetHeight(e.Graphics);&lt;br /&gt;
            foreach(string sPtr in PrinterSettings.InstalledPrinters)&lt;br /&gt;
            {&lt;br /&gt;
                pSettings.PrinterName = sPtr;&lt;br /&gt;
                if(pSettings.IsValid)&lt;br /&gt;
                {&lt;br /&gt;
                    e.Graphics.DrawString(sPtr, printFont,Brushes.Black, nTextPosX, nTextPosY + 5);&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Can Duplex: &amp;quot; + pSettings.CanDuplex.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Is Default: &amp;quot; + pSettings.IsDefaultPrinter.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*2));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Is Plotter: &amp;quot; + pSettings.IsPlotter.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*3));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Landscape Angle: &amp;quot; + pSettings.LandscapeAngle.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*4));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Maximum Copies: &amp;quot; + pSettings.MaximumCopies.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*5));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Maximum Page: &amp;quot; + pSettings.MaximumPage.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*6));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Minimum Page: &amp;quot; + pSettings.MinimumPage.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*7));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Supports Color: &amp;quot; + pSettings.SupportsColor.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*8));&lt;br /&gt;
                    nTextPosY = nTextPosY + ((5 + nHeight*8) + nHeight);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void btnPrint_Click(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            try&lt;br /&gt;
            {   &lt;br /&gt;
                ppDialog.Document = printDoc;&lt;br /&gt;
                ppDialog.ShowDialog();&lt;br /&gt;
            }&lt;br /&gt;
            catch(Exception ex)&lt;br /&gt;
            {&lt;br /&gt;
                MessageBox.Show(ex.ToString());&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
     &lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PrinterSettings.InstalledPrinters==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
/*&lt;br /&gt;
Professional Windows GUI Programming Using C#&lt;br /&gt;
by Jay Glynn, Csaba Torok, Richard Conway, Wahid Choudhury, &lt;br /&gt;
   Zach Greenvoss, Shripad Kulkarni, Neil Whitlow&lt;br /&gt;
Publisher: Peer Information&lt;br /&gt;
ISBN: 1861007663&lt;br /&gt;
*/&lt;br /&gt;
using System.Drawing.Printing;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
//Need Printing namespace&lt;br /&gt;
using System.Drawing.Printing;&lt;br /&gt;
namespace PrinterCaps1&lt;br /&gt;
{&lt;br /&gt;
    public class PrinterCaps1 : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        private System.ruponentModel.Container components = null;&lt;br /&gt;
        public PrinterCaps1()&lt;br /&gt;
        {&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
        }&lt;br /&gt;
        protected override void Dispose( bool disposing )&lt;br /&gt;
        {&lt;br /&gt;
            if( disposing )&lt;br /&gt;
            {&lt;br /&gt;
                if (components != null) &lt;br /&gt;
                {&lt;br /&gt;
                    components.Dispose();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            base.Dispose( disposing );&lt;br /&gt;
        }&lt;br /&gt;
        #region Windows Form Designer generated code&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required method for Designer support - do not modify&lt;br /&gt;
        /// the contents of this method with the code editor.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
            // &lt;br /&gt;
            // PrinterCaps1&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(292, 266);&lt;br /&gt;
            this.Name = &amp;quot;PrinterCaps1&amp;quot;;&lt;br /&gt;
            this.Text = &amp;quot;Printer Caps&amp;quot;;&lt;br /&gt;
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.PrinterCaps1_Paint);&lt;br /&gt;
        }&lt;br /&gt;
        #endregion&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// The main entry point for the application.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        [STAThread]&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new PrinterCaps1());&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void PrinterCaps1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            PrinterSettings pSettings = new PrinterSettings();&lt;br /&gt;
            Font printFont = new Font(&amp;quot;Arial&amp;quot;, 10);&lt;br /&gt;
   &lt;br /&gt;
            //Position&lt;br /&gt;
            int nTextPosY = 0;&lt;br /&gt;
            int nTextPosX = 5;&lt;br /&gt;
            int nHeight = (int)printFont.GetHeight(e.Graphics);&lt;br /&gt;
            foreach(string sPtr in PrinterSettings.InstalledPrinters)&lt;br /&gt;
            {&lt;br /&gt;
                //pSettings.PrinterName = sPtr;&lt;br /&gt;
                pSettings.PrinterName = &amp;quot;BadName&amp;quot;;&lt;br /&gt;
                //if(pSettings.IsValid)&lt;br /&gt;
                //{&lt;br /&gt;
                    e.Graphics.DrawString(sPtr, printFont,Brushes.Black, nTextPosX, nTextPosY + 5);&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Can Duplex: &amp;quot; + pSettings.CanDuplex.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Is Default: &amp;quot; + pSettings.IsDefaultPrinter.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*2));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Is Plotter: &amp;quot; + pSettings.IsPlotter.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*3));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Landscape Angle: &amp;quot; + pSettings.LandscapeAngle.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*4));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Maximum Copies: &amp;quot; + pSettings.MaximumCopies.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*5));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Maximum Page: &amp;quot; + pSettings.MaximumPage.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*6));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Minimum Page: &amp;quot; + pSettings.MinimumPage.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*7));&lt;br /&gt;
                    e.Graphics.DrawString(&amp;quot;Supports Color: &amp;quot; + pSettings.SupportsColor.ToString(), &lt;br /&gt;
                        printFont,Brushes.Black, nTextPosX + 10, nTextPosY + (5 + nHeight*8));&lt;br /&gt;
                    nTextPosY = nTextPosY + ((5 + nHeight*8) + nHeight);&lt;br /&gt;
                //}&lt;br /&gt;
            }&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PrinterSettings.PrinterName==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing.Printing;&lt;br /&gt;
class MainClass {&lt;br /&gt;
    static void Main(string[] args) {&lt;br /&gt;
        foreach (string printerName in PrinterSettings.InstalledPrinters) {&lt;br /&gt;
            Console.WriteLine(&amp;quot;Printer: {0}&amp;quot;, printerName);&lt;br /&gt;
            PrinterSettings printer = new PrinterSettings();&lt;br /&gt;
            printer.PrinterName = printerName;&lt;br /&gt;
            if (printer.IsValid) {&lt;br /&gt;
                Console.WriteLine(&amp;quot;Supported Paper Sizes:&amp;quot;);&lt;br /&gt;
                foreach (PaperSize size in printer.PaperSizes) {&lt;br /&gt;
                    if (Enum.IsDefined(size.Kind.GetType(), size.Kind)) {&lt;br /&gt;
                        Console.WriteLine(&amp;quot;  {0}&amp;quot;, size);&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PrinterSettings.PrinterResolutions==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing.Printing;&lt;br /&gt;
class MainClass {&lt;br /&gt;
    static void Main(string[] args) {&lt;br /&gt;
        foreach (string printerName in PrinterSettings.InstalledPrinters) {&lt;br /&gt;
            Console.WriteLine(&amp;quot;Printer: {0}&amp;quot;, printerName);&lt;br /&gt;
            PrinterSettings printer = new PrinterSettings();&lt;br /&gt;
            printer.PrinterName = printerName;&lt;br /&gt;
            if (printer.IsValid) {&lt;br /&gt;
                Console.WriteLine(&amp;quot;Supported Resolutions:&amp;quot;);&lt;br /&gt;
                foreach (PrinterResolution resolution in printer.PrinterResolutions) {&lt;br /&gt;
                    Console.WriteLine(&amp;quot;  {0}&amp;quot;, resolution);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>