I made a system (using C# and WooCommerce Rest API) for a TakeAway Website to print a Ticket after a User orders products on a Website.
I am using the EPSON TMT20 II Printer to print the Data. I am using the Printer as a Network Printer because I have to and printing Tickets is no Problem, I only have to cut the Paper after successfully printing a Ticket which is the Problem I have.
I am sending the Data via CMD Commands
(example: copy /b "D:...\order_n.txt" "\\Servername\Printername") -> prints the Data I saved in a .txt File
is it possible to append the paper cut command to the .txt File that I am printing or is there another, more efficient way to cut the paper via C#?
According to the Documentation GS V 48 and GS V 0 are the commands that can be used to cut the paper
https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=87#gs_cv
I tried using the RawPrinterHelper Class and sending the Cut Command Data as Bytes but it returns me Windows Error 1801 or rather I can't access the Printer in that way. I also tried to append the command the File I sent to the printer.
Any help would be appreciated! if I haven't been detailed enough please let me know! Thanks in Advance