Page 1 of 1

ILabel Error C#

Posted: Mon Jun 11, 2018 7:20 pm
by mthomas
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.

Re: ILabel Error C#

Posted: Tue Jun 12, 2018 12:38 am
by dado
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

Re: ILabel Error C#

Posted: Tue Jun 12, 2018 4:25 pm
by mthomas
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);
   

Re: ILabel Error C#

Posted: Wed Jun 13, 2018 2:54 pm
by dado
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