Epson TM-m50II ePOS-Print XML Users Manual - Page 62
Create and execute a progra, to call XML Print Service.,
View all Epson TM-m50II manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 62 highlights
Chapter 3 Programming Guide - How to Use WSDL 6 Create and execute a program to call XML Print Service. Editing example (File to be edited: Program.cs) namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ePOSPrintPortTypeClient client = new ePOSPrintPortTypeClient(); parameter param = new parameter(); param.printjobid = "ABC123"; param.devid = "local_printer"; param.timeout = "60000"; eposprint epos = new eposprint(); text t = new text(); t.align = align.center; t.alignSpecified = true; t.dh = true; t.dhSpecified = true; t.Value = "Hello, World!\n"; cut c = new cut(); c.type = cuttype.feed; epos.Items = new object[] { t, c }; response res = client.send(ref param, epos); Console.WriteLine(res.success); Console.WriteLine(res.code); Console.WriteLine(res.status); Console.WriteLine(res.battery); Console.ReadLine(); } } } 62