dymosoftware / DCD-SDK-Sample

DYMO Connect SDK Samples
Other
60 stars 27 forks source link

DCD 1.3.1 reports LabelManager 420P IsAutoCutSupported as true even though it doesn't support this feature #10

Open fssup opened 4 years ago

fssup commented 4 years ago

The LabelManager 420P has a cutter, but is manually operated. It therefore does not qualify for the IsAutoCutSupported flag, but nonetheless it is set.

Info: DCD 1.3.1 on Windows 10 1909 x64 Visual Studio 2019 DYMO.Connect.SDK 1.3.1.115 Installation steps followed from WPFSDKSample

Steps to reproduce:

  1. Installation according to WPFSDKSample
  2. Create new C# .NET Framework console application in Visual Studio 2019
  3. Build this file:
using DymoSDK.Implementations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrinterInfo
{
    class Program
    {
        static void Main(string[] args)
        {

            IEnumerable<DymoSDK.Interfaces.IPrinter> Printers;
            Printers = DymoPrinter.Instance.GetPrinters();
            foreach (DymoSDK.Interfaces.IPrinter Printer in Printers)
            {
                Console.WriteLine(Printer.Name + ", IsConnected: " + Printer.IsConnected + ", IsAutoCutSupported: " + Printer.IsAutoCutSupported + ", PrinterType: " + Printer.PrinterType);
            }
            Environment.Exit(0);
        }
    }
}
  1. Connect DYMO LabelManager 420P
  2. Run the executable you just build from the commandline
  3. The SDK reports the LabelManager 420P as IsAutoCutSupported: True even though the physical device doesn't have this feature as it is operated manually
fssup commented 4 years ago

Problem still present in DYMO.Connect.SDK 1.3.1.160-beta