locked
More printing "fun" with POS RRS feed

  • Question

  • OK, so I'm trudging through the joys of POS printing.  And I'm a tad (OK, more than a tad) befuddled.  I've read a bunch of tutprials and bought Sean Liming's book and I have the following code to get my printer setup:

    //  PosPrinter kitchenPrinter = null;                    
                        PosExplorer explorer=new PosExplorer();
                        DeviceInfo KitchenDevice = explorer.GetDevice("PosPrinter","ReceiptPrinter");
                        PosPrinter kitchenPrinter= (PosPrinter)explorer.CreateInstance(KitchenDevice);
                        kitchenPrinter.Open();
                        kitchenPrinter.Claim(1000);
                        kitchenPrinter.AsyncMode=false;
                        kitchenPrinter.DeviceEnabled=true;

    And maybe not surprisingly, it's not cooperating.  If I don't use the logical name overloaded GetDevice, it tells me I have more than one POSPrinter (which I don't) so in the Epson utility I changed the logical name to ReceiptPrinter and now it's telling me my kitchenPrinter is null. I'm probably overtired and missing something stupid but any suggestions?

    Thanks in advance for any help...

    Paul


    Thursday, November 15, 2012 10:59 PM

Answers