Page 1 of 1

Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Tue Feb 19, 2019 10:21 am
by Denny
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.

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Fri Mar 01, 2019 12:22 pm
by dado
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 8130 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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Tue Mar 05, 2019 10:39 am
by Denny
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.

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Tue Mar 05, 2019 11:17 pm
by dado
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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Thu Mar 07, 2019 4:10 am
by Denny
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.

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Thu Mar 07, 2019 8:40 am
by dado
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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Thu Mar 07, 2019 10:31 am
by Denny
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.

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Thu Mar 07, 2019 12:19 pm
by dado
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

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Tue Mar 12, 2019 3:00 am
by Denny
Hi Damjan´╝î

Thank you for all support on this problem.

Regards
Denny

Re: Landscape Paper print as Portait by NiceLabel2017 SDK

Posted: Tue May 21, 2019 8:38 am
by Denny
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