I want to print a label through a Dymo LabelWriter 450 using the Dymo.Connect.SDK NuGet package.
Here my code:
Imports DymoSDK.Implementations
Imports DymoSDK.Interfaces
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim dymoSDKLabel As DymoSDK.Implementations.DymoLabel
dymoSDKLabel.LoadLabelFromFilePath("path\Name.dymo")
Dim SelectedPrinter As String = "DYMO LabelWriter 450"
DymoPrinter.Instance.PrintLabel(dymoSDKLabel, SelectedPrinter, 1, True)
End Sub
Error message: "The object reference was not set to an object instance."
That's why I set dymoSDKLabel = new DymoLabel()
before i load the path. That would have been logical for me, but I get the error message: "Error resolving overload because no "new" is accessible"
Does anyone have any ideas how i can get to my goal? Unfortunately there is no real documentation for the NuGet package or code examples. If more information is needed, just ask. I am thankful for every help.
Best regards