Open RayCheung0616 opened 2 years ago
Add nuget package: XML2ESCPOS to your project
and
Example Code:
string plantilla = "<IMAGE` PATH='wwwroot\img\logo.jpg' F='200'/>"; // replace 'wwwroot\img\logo.jpg' with your image path XML2ESCPOS.Engine xML2ESCPOS = new XML2ESCPOS.Engine { Template = plantilla, PrinterName = "Epson" // replace 'Epson' with your printer name }; XML2ESCPOS.Print();
Thank you very much.
Hi,
Anyone know how to print image to ESC/POS Printer ? It will very helpful if someone can give an example to print image to ESC/POS Printer.
Ray.