What the fuck. Why? Why? Why? Why? Why? Nothing works. It is FUBAR. Every last bit. I try to make a simple program. It doesn't work. The documentation is useless. The AI can't keep its frameworks straight. Guess it goes in the bin then. I buy some glassware. I get home and put water in it. It's fucking cracked. I tried. I tried again. I tried again. I tried again. Nothing works. It never has. It never will. At this point I am left to believe that all is nothing and nothing is everything. There is no point in continuation if the end, the beginning, and everything in between proves futile. If it all refuses to stick to the metaphorical wall, then at least it could have the decency to ricochet into my metaphorical skull.
Alright, this is my second or third time around dealing with this hot pile of garbage NuGet package. First off, DYMO’s SDK is not built for modern .NET development from what I can gather. If you are building a WPF or WinForms application with this package, be aware that it is only functional for .NET Framework projects. The only “documentation” is some 4 year old sample applications on github. If you find yourself in the unfortunate situation of having to integrate these little bastards into your workflow, here’s an actually useful sample:
DymoSDK.App.Init();
IPrinter printer = DymoPrinter.Instance.GetPrinters().Result.First();
IDymoLabel label = DymoLabel.Instance;
label.LoadFromFilePath("path/to/label.dymo");
var addresssObj = label.GetLabelObject("IAddressObject0");
label.UpdateLabelObject(addressObj, "Microsoft\r\nOne Microsoft Way\r\nRedmond, WA 98052");
DymoPrinter.Instance.PrintLabel(label, printer.Name);