Landscape Paper print as Portait by NiceLabel2017 SDK

Issues related to label design (working with databases, data processing, RFID encoding etc.) and printing (from NiceLabel Express, NiceLabel Pro, NiceForm and NicePrint)

Moderators: Georges, milos, NiceLabel Support Team

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

Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Tue Feb 19, 2019 10:21 am

Hi Experts,

I have label template which paper Orientation is set as Landscape. but when I use nicelabel2017 sdk to print, the label is printed as Portait.
Does anyone can shed me some lights on this problem?
I attached the label template screenshot and current print result.

Thanks.
Attachments
Label Template.jpg
Label Template.jpg (253.25 KiB) Viewed 7938 times
Current Result.pdf
(4.39 KiB) Downloaded 388 times

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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by dado » Fri Mar 01, 2019 12:22 pm

Hi Danny

Printing a label from the NiceLabel Designer and from the SDK works the same way. So If you print a label set in the Landscape mode from the designer and from the SDK you should get the same print out.

Now to the second part of the answer. I would like you to test a newly created label. When you create one set the Landscape in the "New Label Setup Wizard" on the third page (which is the Label Layout page).
Landscape.png
Landscape.png (22.18 KiB) Viewed 7913 times
Now place something on this label and print it from the designer. Save it to landscapePrint.nlbl.

Now create a simple application that does only one simple print.

Code: Select all

PrintEngineFactory.SDKFilesPath = @"c:\Program Files\NiceLabel\NiceLabel 2017\bin.net";
PrintEngineFactory.PrintEngine.Initialize();
ILabel label = PrintEngineFactory.PrintEngine.OpenLabel("c:\\tmp\\landscapePrint.nlbl");
label.Print(1);
PrintEngineFactory.PrintEngine.Shutdown();
Does this already print a rotated print out???

If this works normally, then you could check whether you have printing defaults changed in the printer driver and application running SDK loads different landscape settings from the driver.

If not please reply here and provide more information like label you're using, which printer is used, which driver, which version of the software (including build number)

Regards, Damjan

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Tue Mar 05, 2019 10:39 am

Hi Damjan,

Sorry for the late response. I use your provided solution and create a label template for testing, but I found a strange problem.
In the template,I only put a Text Field. When I set the Font size for this Text Larger than 85, it is printed as the same in the NiceLabel Designer,
but if I set font size smaller than 85, the printed label is rotated.
I attached my sample template, a screenshot and print results for you reference.
Could you please shed me some lights on why the Font size will make label be rotated?
The SDK version I am using is SDK2017.1.0.1102.
Attachments
Font size set as 85.pdf
(3.46 KiB) Downloaded 390 times
Font size set as 72.pdf
(4.19 KiB) Downloaded 389 times
ProblemDesc.png
ProblemDesc.png (81.88 KiB) Viewed 7896 times
SampleTemplate.nlbl
(4.83 KiB) Downloaded 387 times

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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by dado » Tue Mar 05, 2019 11:17 pm

Hi

One thing I noticed is that you're using a veeeeery old SDK.

As I see here in the code, we fixed something similar with SDK and rotations back in march 2018. So the SDK version SDK2017.3.x.x and forward should have the fix.

You'll need to update the SDK you're using.

Regards, Damjan

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Thu Mar 07, 2019 4:10 am

Hi Damjan,

Thank you for your information, and where can I download this SDK?
Besides, Our application also need to support printing 5.4 label Template.
Does it have this same bug by using Nicelabel SDK 5.4?
If yes, Is there any solution can solve this bug for printing 5.4 label template?

Thanks.

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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by dado » Thu Mar 07, 2019 8:40 am

Hi

To get the latest SDK 2017.3 you'll need to contact our sales team.

I am a little confused with the question you gave me, but I'll try answer them.
Printing 5.4 labels from SDK 2017.3 is supported and it should print the label correctly rotated. I believe the SDK from version 5.4 does not have this bug.

Regards, Damjan

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Thu Mar 07, 2019 10:31 am

Hi Damjan,

I'm sorry for make you confuse. Actually now when we using nicelabel SDK5.4 to print 5.4 label, it has the same result as we print 2017 label template by using SDK 2017.1.

Thanks.

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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by dado » Thu Mar 07, 2019 12:19 pm

Ok. Another question.

You are using 5.4.0 or 5.4.4. The last version 5 SDK product has the version 5.4.4.7023?

Even if we have a bug in version 5 we are unable to create a fix for it since we are no longer supporting it (v5 was introduced in 2007)

In your case I would try the 2017.3 SDK to see if the rotation is correct.

Regards, Damjan

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Tue Mar 12, 2019 3:00 am

Hi Damjan,

Thank you for all support on this problem.

Regards
Denny

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Post by Denny » Tue May 21, 2019 8:38 am

Hi Damjan,

We upgrade Nicelabel SDK version to 2017.3,but the label is still not printed as it designed in the Nicelabel Designer.
Now the label paper size is correct, but the label contents are not correct. Do you have any idea for that?
I attached the printed result and label template screenshot for you reference.

Regards
Denny
Attachments
Current Result.png
Current Result.png (21.96 KiB) Viewed 3477 times
label screenshot.png
label screenshot.png (191.7 KiB) Viewed 3477 times

Post Reply