This commit is contained in:
ChiKyun Kim
2025-09-23 15:41:16 +09:00
parent 02028afc27
commit b037dd53e6
74 changed files with 4269 additions and 7917 deletions

View File

@@ -19,7 +19,7 @@ namespace Project.Device
public string PortName { get; set; }
public int BaudRate { get; set; }
public string ZPLFileName { get; set; } = "zpl.txt";
public string ZPLFileName { get; set; } = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data", "zpl.txt");
public string baseZPL
{
get
@@ -28,7 +28,7 @@ namespace Project.Device
if (fi.Exists == false || fi.Length == 0)
{
PUB.log.AddE($"{ZPLFileName} does not exist or has no data. Changed to default zpl.txt");
fi = new System.IO.FileInfo("zpl.txt");
fi = new System.IO.FileInfo(UTIL.MakePath("Data", "zpl.txt"));
if (fi.Exists == false) PUB.log.AddE("Print template file (zpl.txt) does not exist");
}
if (fi.Exists && fi.Length > 1)
@@ -38,7 +38,7 @@ namespace Project.Device
PUB.log.AddAT("No ZPL file found, using ZPL code from settings");
return Properties.Settings.Default.ZPL7;
}
}
}