ILabel Error C#

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
mthomas
Newcomer
Posts: 2
Joined: Mon Jun 11, 2018 7:16 pm

ILabel Error C#

Post by mthomas » Mon Jun 11, 2018 7:20 pm

The following code:

ILabel label = PrintEngineFactory.PrintEngine.OpenLabel(@Settings.LipLabel);

Produces the following error

Method 'get_LabelObjects' in type 'NiceLabel.SDK.Label' from assembly 'SDK.NET, Version=17.2.0.0, Culture=neutral, PublicKeyToken=865eaf3445b2ea56' does not have an implementation.

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 664
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: ILabel Error C#

Post by dado » Tue Jun 12, 2018 12:38 am

Please try to call these two lines before calling OpenLabel. And make sure you use the latest 17.3.1 version

Code: Select all

PrintEngineFactory.SDKFilesPath = "c:\\Application\\SDKPath\\";
PrintEngineFactory.PrintEngine.Initialize();
ILabel label = PrintEngineFactory.PrintEngine.OpenLabel(@"c:\tmp\SimpleLabel.lbl");
Regards, Damjan

mthomas
Newcomer
Posts: 2
Joined: Mon Jun 11, 2018 7:16 pm

Re: ILabel Error C#

Post by mthomas » Tue Jun 12, 2018 4:25 pm

I did. The licensed SDK is on the network path. Below is the code:

Code: Select all

string SDKPath = Settings.Domain + "\\bin.net";
 if (Directory.Exists(@SDKPath) && File.Exists(@Settings.LipLabel))
 {
      PrintEngineFactory.SDKFilesPath = SDKPath;
      PrintEngineFactory.PrintEngine.Initialize();
      ILabel label = PrintEngineFactory.PrintEngine.OpenLabel(@Settings.LipLabel);
   

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 664
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: ILabel Error C#

Post by dado » Wed Jun 13, 2018 2:54 pm

I have some questions before we proceed...

Which version do you have (including build number)?
Provide the path to the executable that you are executing?
Provide the path to the SDKFiles (the SDK.NET and SDK.NET.Interface)?

Regards, Damjan

Post Reply