How to Send Print to Epson EM T82 POS Printer from Xamarin Forms App?

HarshitaHarshita INMember ✭✭✭

Here I am starting a new activity for print data to my Epson TM T82 POS Thermal printer.And my Printer is connected through USB OTG Cable

public void printData()
        {
            String dataToPrint = "$big$This is a printer test$intro$posprinterdriver.com$intro$$intro$$cut$$intro$";

            Intent intentPrint = new Intent();

            intentPrint.SetAction(Intent.ActionSend);
            intentPrint.PutExtra(Intent.ExtraText, dataToPrint);
            intentPrint.SetType("text/plain");

            this.StartActivity(intentPrint);
        }

but this code is not working as expected.

so how to send few lines of text for print to Epson POS Thermal from Xamarin Forms App?.

anyone have any example for print data using Epson POS Printer?

Answers

  • AnubhavRanjanAnubhavRanjan INXamarin Team Xamurai

    @Harshita First of all, are you able to see if the Printer specified, is detected by your Android Device?
    Have you checked the Google print Services, if they are picking up the said printer?
    Or you can also try to check using some third-party apps if they are able to detect it.
    I have a feeling that the required driver might not be present.

    .

    .

    .



    Looking for Free* Microsoft Support on Xamarin Issues, visit https://aka.ms/xamarinsupport


  • HarshitaHarshita INMember ✭✭✭

    @AnubhavRanjan
    Already solved it. :)

Sign In or Register to comment.