c#调用条码打印机
源代码在线查看: form1.designer.cs
namespace ZPLPrinter
{
partial class Form1
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.btnPrintZPL = new System.Windows.Forms.Button();
this.cmbInstalledPrinters = new System.Windows.Forms.ComboBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.SuspendLayout();
//
// btnPrintZPL
//
this.btnPrintZPL.Location = new System.Drawing.Point(80, 163);
this.btnPrintZPL.Name = "btnPrintZPL";
this.btnPrintZPL.Size = new System.Drawing.Size(75, 23);
this.btnPrintZPL.TabIndex = 10;
this.btnPrintZPL.Text = "Print ZPL";
this.btnPrintZPL.UseVisualStyleBackColor = true;
this.btnPrintZPL.Click += new System.EventHandler(this.btnPrintZPL_Click);
//
// cmbInstalledPrinters
//
this.cmbInstalledPrinters.FormattingEnabled = true;
this.cmbInstalledPrinters.Location = new System.Drawing.Point(4, 12);
this.cmbInstalledPrinters.Name = "cmbInstalledPrinters";
this.cmbInstalledPrinters.Size = new System.Drawing.Size(227, 20);
this.cmbInstalledPrinters.TabIndex = 9;
//
// richTextBox2
//
this.richTextBox2.Location = new System.Drawing.Point(4, 38);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.Size = new System.Drawing.Size(227, 119);
this.richTextBox2.TabIndex = 8;
this.richTextBox2.Text = "^XA \n^LH0,0 \n^FO203,203\n^BY3,2.4,50\n^B3N,Y,,Y,N\n^FDABC123^FS\n^XZ ";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(235, 192);
this.Controls.Add(this.btnPrintZPL);
this.Controls.Add(this.cmbInstalledPrinters);
this.Controls.Add(this.richTextBox2);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btnPrintZPL;
private System.Windows.Forms.ComboBox cmbInstalledPrinters;
private System.Windows.Forms.RichTextBox richTextBox2;
}
}