Para determinar los tamaños de papel del que dispone una Impresora en .NET:

using System.Drawing;
using System.Drawing.Printing;

protected void Page_Load(object sender, EventArgs e){

PrintDocument myDoc = new PrintDocument();
myDoc.PrinterSettings.PrinterName = "BIXOLON";
foreach (PaperSize pz in myDoc.PrinterSettings.PaperSizes)
{
Response.Write(pz.PaperName);
}

}

Advertisements