dymosoftware / DCD-SDK-Sample

DYMO Connect SDK Samples
Other
60 stars 26 forks source link

C# - wouldn't print a single label using latest build. No errors either #50

Open orsted68 opened 2 years ago

orsted68 commented 2 years ago

We are using labels we designed, and just replacing the objects with values from our DB.

We copied code form the WPF example, but in C# it doesn't seem to work as expected.

At first it did nothing

We added this "GetPrinters()" which we saw on another thread in Issues, which is somehow necessary to the process?

Then it errored out with "Could not load file or assembly SkiaSharp.Views.Desktop..." 1.6.8.0... when we made the DymoPrinter.Instance.PrintLabel() call.

In the end, to make it work, we ended up adding "SKIASharp.Views (v.1.68.0)" via NuGet.

None of this is documented behavior.

dymosoftware commented 2 years ago

The sample app is very simple basic app how to use Dymo SDK from reading printers to printing out a label. ReadMe will need to update the dependencies nuget from Dymo Connect app. NETStandard.Library (>= 2.0.0) SkiaSharp (= 1.68.0) SkiaSharp.Views (= 1.68.0)

orsted68 commented 2 years ago

Yes. You may wish to do this. We wasted hours trying to solve this.

MARK ORSTED| SENIOR SYSTEMS ANALYST, OPERATIONS| O +1 217 531 6708 | E @.**@.>

II-VI EPIWORKS | 1606 RION DR | CHAMPAIGN IL 61822 | UNITED STATES


From: DYMO Software @.> Sent: Thursday, April 28, 2022 6:32:24 AM To: dymosoftware/DCD-SDK-Sample @.> Cc: Mark Orsted @.>; Author @.> Subject: [EXTERNAL]: Re: [dymosoftware/DCD-SDK-Sample] C# - wouldn't print a single label using latest build. No errors either (Issue #50)

The sample app is very simple basic app how to use Dymo SDK from reading printers to printing out a label. ReadMe will need to update the dependencies nuget from Dymo Connect app. NETStandard.Library (>= 2.0.0) SkiaSharp (= 1.68.0) SkiaSharp.Views (= 1.68.0)

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https://github.com/dymosoftware/DCD-SDK-Sample/issues/50*issuecomment-1112094986__;Iw!!BEJPKrpf!7azME18dEJQq8AuhFjsxbGOsO8SS2t2rzEa-QEn7lqJVnvZdpSKoE_Tcpy_4kk0EwZioK3O_eun2xnEIagHVmcybAA$, or unsubscribe [github.com]https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AF5N3JOKPST3K5AF5JWRYYLVHJZMRANCNFSM5UMQXK2A__;!!BEJPKrpf!7azME18dEJQq8AuhFjsxbGOsO8SS2t2rzEa-QEn7lqJVnvZdpSKoE_Tcpy_4kk0EwZioK3O_eun2xnEIagH2d7RUaw$. You are receiving this because you authored the thread.Message ID: @.***>


The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, re-transmission, copying, disclosure, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.