..
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user