Commit fff4105d 刘韬

1

1 个父辈 52bdb57f
......@@ -469,9 +469,9 @@ namespace BLL
using (PrintDialog dlg = new PrintDialog())
{
PrinterSettings printerSettings = new PrinterSettings();
dlg.PrinterSettings.DefaultPageSettings.PaperSize = new PaperSize("C", (int)(Common.Label[labelIdx].Size_mm.Width * 4.11), (int)(Common.Label[labelIdx].Size_mm.Height * 4.11));
//dlg.PrinterSettings.DefaultPageSettings.PaperSize = new PaperSize("C", (int)(Common.Label[labelIdx].Size_mm.Width * 4.11), (int)(Common.Label[labelIdx].Size_mm.Height * 4.11));
//dlg.PrinterSettings.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
dlg.PrinterSettings.DefaultPageSettings.PrinterSettings.PrinterResolutions.Add(new PrinterResolution { Kind = PrinterResolutionKind.High });
//dlg.PrinterSettings.DefaultPageSettings.PrinterSettings.PrinterResolutions.Add(new PrinterResolution { Kind = PrinterResolutionKind.High });
if (dlg.ShowDialog() != DialogResult.OK)
return;
PrintDocument print = new PrintDocument {
......
......@@ -364,7 +364,7 @@ namespace Asa
TscStauts CheckTscStatus() {
public TscStauts CheckTscStatus() {
TscStauts s = TscStauts.None;
var t = Task.Run(() => {
Console.WriteLine("TID:"+ GetCurrentThreadId().ToString("X"));
......@@ -424,11 +424,11 @@ namespace Asa
/// <summary>
/// 纸张间隙mm,默认3mm
/// </summary>
public double Gap = 3;
public double Gap = 2;
/// <summary>
/// 纸张间隙偏移量mm,默认0.3mm
/// </summary>
public double GapOffset = 0.3;
public double GapOffset = 0;
/// <summary>
/// 打印方向 1横向,0纵向,默认1
/// </summary>
......
......@@ -23,7 +23,7 @@ namespace PrintLabel_Test
private void Form1_Load(object sender, EventArgs e)
{
print = new Asa.PrintLabel(Application.StartupPath + "\\Label",100);
print = new Asa.PrintLabel(Application.StartupPath + "\\Label",300);
print.PrintStatusChanged += Print_PrintStatusChanged;
loadlabelname();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!