日期:2014-05-17 浏览次数:20498 次
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using LabelManager2;
using System.Collections.Generic;
using System.Reflection;
namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnPrint_Click(object sender, EventArgs e)
{
ApplicationClass lbl = new ApplicationClass();
try
{
lbl.Documents.Open(this.MapPath("Document2.lab"), false);// 调用设计好的label文件
Document doc = lbl.ActiveDocument;
//局域网打印机地址:\\MR50006433PC2\ZDesigner 110XiIII Plus 300DPI 和 \\MR50007967PC2\Zebra S4M (300 dpi) - ZPL
string printName=txtPrintName.Text.Trim();
//端口:LPT1:
string printPoint = txtPrintPoint.Text.Trim();