I'm have plan integrate API Status EPSON Printer. I have done the steps as per the documentation, but the App i can't run.
public partial class Form1 : Form
{
private const string path = @"C:\Program Files (x86)\EPSON\Advanced Printer Tool\StatusAPI\EpsonStatusAPI.dll";
[DllImport(path, CallingConvention = CallingConvention.Cdecl)]
public static extern ErrorCode OpenMonPrinter(OpenType type, String name);
public Form1()
{
InitializeComponent();
}
String namePrinter = "EPSON TM-T81III Receipt";
private void Form1_Load(object sender, EventArgs e)
{
OpenMonPrinter(OpenType.TYPE_PRINTER, namePrinter);
}
}
Output error: Unable to find an entry point named 'OpenMonPrinter' in DLL 'C:\Program Files (x86)\EPSON\Advanced Printer Tool\StatusAPI\EpsonStatusAPI.dll'.
I hope i will find a good solution from everyone.