Sessionprint problem in sdk 2017

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Sessionprint problem in sdk 2017

Post by Denny » Mon Dec 25, 2017 9:03 am

Hi experts,

I have a problem for sessionprint in nicelabel2017 sdk.I opened two labels and startSession for both two labels.But only one session is created.The other session can only be started when the frist session ended.
below is the code. Does anyone has any ideas about this?

IPrintEngine eng1 = PrintEngineFactory.PrintEngine;
ILabel label1 = eng1.OpenLabel("XXXX1.nlbl");
label1.PrintSettings.PrinterName = "XXXX 1";
ISessionPrintRequest session1 = label1.StartSessionPrint();

IPrintEngine eng2 = PrintEngineFactory.PrintEngine;
ILabel label2 = eng2.OpenLabel("XXXXXX2.nlbl");
label2.PrintSettings.PrinterName = "XXX2";
ISessionPrintRequest session2 = label2.StartSessionPrint();

NiceLabel Development
NiceLabel Development
Posts: 22
Joined: Wed Nov 29, 2006 2:10 pm

Re: Sessionprint problem in sdk 2017

Post by primoz » Mon Feb 19, 2018 12:06 pm


Sorry for the late reply.

The posted code should work and the second session should start even if the first one is not finished yet.
Also the second call to Initialize is not needed as this is the same engine instance.

If you are still having problems please contact NiceLabel support on

Post Reply