private void btnPrintTag_Click(object sender, EventArgs e) { DemarcateRecords demarcateRecords = GetDemarcateRecords(); if (demarcateRecords == null) { return; } QRCodePrintForm qRCodePrintForm = new QRCodePrintForm(demarcateRecords); qRCodePrintForm.ShowDialog(); }
public QRCodePrintForm(DemarcateRecords records) { demarcateRecords = records; InitializeComponent(); MinimizeBox = false; MaximizeBox = false; //printDocument1.OriginAtMargins = true;//启用页边距 pageSetupDialog1.EnableMetric = true; //以毫米为单位 txtSerialName.BorderStyle = BorderStyle.None; txtDemarNum.BorderStyle = BorderStyle.None; txtWorkstation.BorderStyle = BorderStyle.None; txtValid.BorderStyle = BorderStyle.None; txtCheckman.BorderStyle = BorderStyle.None; }