
Creating a Table Naming Conflict in Power Query on Global name meets Local, Global freaks out. Woolley on Two new range functions: Union and Subtract CR on Filtering Pivots based on external ranges. International Keyboard Shortcut Day 2019. Opening a File from a Userform Disables Ribbon. If I had written the object model, my code would have looked like this: It did it automatically because I set that “property” when I created the label template, but it would be nice to be able to set it in code. I wanted to set the ShrinkToFit property of the Textbox to TRUE, but I couldn’t figure out how to do it. I had to include a third argument for PaperTray, which is utterly ludicrous if you look at the LabelWriter 450. Out of desperation, I chose the Print2 method. It reminds me of Quickbooks in that there are few, if any, properties and everything is a method.įinally I tried the Print method, but was rewarded with “Object doesn’t support this property or method.” One of my favorite errors. My label has one object on it called “Text”, so the SetField method was pretty straight forward. As far as I can tell, when I call the Open method to the DymoAddin object, the DymoLabels object automatically becomes whatever was open. Name them something understandable like Open and OpenPriorVersion. If you have two Open methods, don’t freaking name them Open and Open2. Am I done bashing the DYMO programmers yet? Not even close. There’s also an Open2 method, but I don’t know the difference. I discovered that GetDymoPrinters returns my one printer, so I pass that to SelectPrinter and that seems to have worked. I guess if you have more than one Dymo printer, GetDymoPrinters returns some delimited string. I set the printer I want to use using SelectPrinter and GetDymoPrinters.
I would have thought that I could get the current label from the DymoAddin object, but that doesn’t appear to be the case. I needed to create both the DymoAddin object and the DymoLabels object. From what I can tell, DymoLabels is only one label, from which I can only conclude…wait for it…they gave it an awful name. This object has two properties: DymoAddin (what an awful name) and DymoLabels.
I start with a DymoHighLevelSDK object – what an awful name. Let’s step through this and try to see what’s happening.