dymosoftware / DCD-SDK-Sample

DYMO Connect SDK Samples
Other
60 stars 26 forks source link

Invalid class string #77

Open arnerb opened 1 year ago

arnerb commented 1 year ago

I am trying to connect to a labelwriter's high level COM object via python and I keep getting an Invalid class string error when running the following code:

import pywin32
printer = win32com.client.Dispatch('Dymo.DymoAddIn')

Contextual information

I've installed the driver and SDK last week from the official dymo webpage (https://www.dymo.com/support?cfid=online-support-sdk). The printer is connected and prints labels without error.

I also found the following obscure link on reddit pointing to the same issue (albeit on linux instead of Windows 10): https://www.reddit.com/r/learnpython/comments/y52p2q/issue_with_windows_com_objects_and_dymo_printers/

Possible solutions

The "solution" proposed in the link above seems strange however - any other ideas what could be going wrong?