Dymo.Connect.SDK does not list printers in ClickOnce app

1k views Asked by At

I'm using the new DYMO SDK Dymo.Connect.SDK provided by NuGet in a Windows Forms app (.Net Framework 4.8). I want to list all available dymo printers. When debugging the app or starting the exe, everything works fine and the printer is found. When I deploy the app as ClickOnce, no printer is found.

My Code:

using DymoSDK.Implementations;
public static List<string> GetLabelWriterList(bool tape = true)
    {
        List<string> printers = new List<string>();
        foreach (DymoSDK.Interfaces.IPrinter printer in DymoPrinter.Instance.GetPrinters()) //Get list of DYMO printers installed
        {                                 
             printers.Add(printer.Name);                    
        }
        return printers;
   }

What might be the reason for ClickOnce to fail?

0

There are 0 answers