I'm writing a C# app to connect to a bluetooth printer and print labels off.
As part of this, I want to save the connected printer to an XML file, so that we can connect to it on subsequent runs without having to rediscover.
I've happily extracted the IDiscoveredPrinter details and saved them, and can read them back out again, but I am having problems recreating the printer.
I can create a DiscoveredPrinter, or DiscoveredPrinterBluetooth, but I cannot create or cast the relevant instances.
Any help please.