NL2017 SessionPrint and SkipLabel

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
bcuizon
Enthusiast
Posts: 7
Joined: Tue May 08, 2018 8:56 am

NL2017 SessionPrint and SkipLabel

Post by bcuizon » Thu May 10, 2018 3:30 am

Hello,

Previously, we pass a string parameter to SessionPrint method (quantityToPrint, quantityToSkip). In NL2017, SessionPrint accepts 2 parameters; quantityToPrint and sessionPrintRequest. There is a skiplabel property in printsettings, however, this does not work in sessionPrint. So how do we skip labels when using SessionPrint in NL2017?

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2933
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Re: NL2017 SessionPrint and SkipLabel

Post by Saso » Thu May 10, 2018 10:32 am

Use it like this:

Code: Select all

ILabel label2 = PrintEngineFactory.PrintEngine.OpenLabel(@"c:\temp\skiplabel.nlbl");

label2.PrintSettings.SkipLabels = 2;

var x = label2.StartSessionPrint();
label2.SessionPrint(6, x);
label2.EndSessionPrint(x);
Saso Fleiser
Senior Technical Product Specialist

bcuizon
Enthusiast
Posts: 7
Joined: Tue May 08, 2018 8:56 am

Re: NL2017 SessionPrint and SkipLabel

Post by bcuizon » Fri May 11, 2018 9:33 am

Thank you sir.

Post Reply