Auch Drucker, die mit "EPSON" beginnen, automatisch erkennen
This commit is contained in:
+1
-9
@@ -22,7 +22,7 @@ namespace BonNotiz
|
|||||||
|
|
||||||
foreach (String p in PrinterSelect.Items)
|
foreach (String p in PrinterSelect.Items)
|
||||||
{
|
{
|
||||||
if (p.StartsWith("Epson"))
|
if (p.StartsWith("Epson") || p.StartsWith("EPSON"))
|
||||||
{
|
{
|
||||||
PrinterSelect.SelectedItem = p;
|
PrinterSelect.SelectedItem = p;
|
||||||
}
|
}
|
||||||
@@ -31,14 +31,6 @@ namespace BonNotiz
|
|||||||
|
|
||||||
static void Drucken(String bondrucker, String text)
|
static void Drucken(String bondrucker, String text)
|
||||||
{
|
{
|
||||||
/* EscPosPrinter pos = new();
|
|
||||||
pos.Write(text);
|
|
||||||
pos.WriteLine();
|
|
||||||
pos.WriteLine();
|
|
||||||
|
|
||||||
pos.CutPaper(true);
|
|
||||||
Byte[] buf = pos.GetCurrentBuffer(); */
|
|
||||||
|
|
||||||
MarkdownToEscPos md = new();
|
MarkdownToEscPos md = new();
|
||||||
Byte[] buf = md.Render(text);
|
Byte[] buf = md.Render(text);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user