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;
eng1.Initialize();
ILabel label1 = eng1.OpenLabel("XXXX1.nlbl");
label1.PrintSettings.PrinterName = "XXXX 1";
ISessionPrintRequest session1 = label1.StartSessionPrint();
IPrintEngine eng2 = PrintEngineFactory.PrintEngine;
eng2.Initialize();
ILabel label2 = eng2.OpenLabel("XXXXXX2.nlbl");
label2.PrintSettings.PrinterName = "XXX2";
ISessionPrintRequest session2 = label2.StartSessionPrint();
Sessionprint problem in sdk 2017
Moderators: Georges, milos, NiceLabel Support Team
Re: Sessionprint problem in sdk 2017
Hi,
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 support@nicelabel.com.
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 support@nicelabel.com.