Reputation: 1014
In one of my C#.Net application, I used the Thermal Label SDK version 3 to create the Label. Now because of some reasons, I want to update the Thermal Label SDK version to the latest that is version 7. When Updating the Thermal label SDK I can see a lot of changes are there compare to the previous version 3. The following are my doubts.
In Thermal label SDK 3, I can set the margin to the ThermalLabel like below. But in SDK version 7 those attributes are not there.
ThermalLabel tLabel = new ThermalLabel(UnitType.Inch, this.GetInches(labelCreator.ImageSize.Width), this.GetInches(labelCreator.ImageSize.Height));
tLabel.Margin.Top = 0.1;
tLabel.Margin.Left = 0;
tLabel.Margin.Right = 0;
tLabel.Margin.Bottom = 0;
In Thermal label SDK 3, I can set above-mentioned attributes to the TextItem like below. But in SDK version 7 those attributes are not there.
TextItem txtField = new TextItem();
txtField.Font.IsBuiltInFont = !this.useSoftFont;
txtField.Font.CharHeight = fieldDef.FieldFont.Size;
txtField.TextLines = 2;
In Thermal label SDK 3, I can set the Rotate attributes to the BarCodeItem like below. But in SDK version 7 those attributes are not there.
BarcodeItem dataMatrixItem = new BarcodeItem();
dataMatrixItem.Rotate = (Neodynamic.SDK.Printing.Rotate)Enum.Parse(typeof(Neodynamic.SDK.Printing.Rotate), fieldDef.Rotate);
I checked the documentation but I don't see anything related to that. If anyone knows how to do that please let me know.
Upvotes: 0
Views: 459
Reputation: 1014
I have contacted the Neodynamic support team, the following is the response I got from them. I am posting it here because it might help someone.
Since v4, SDK is not backward compatible.
Margin are no longer supported, you have to specify the X and Y prop of each item
For TextItem font settings, you must use Font property. Read more on the help https://neodynamic.com/Products/Help/ThermalLabel7.0/articles/using-fonts.html
Set the RotationAngle prop of BarcodeItem obj
Upvotes: 1
Reputation: 4014
As per documentation they don't have such properties for you to use
https://www.neodynamic.com/Products/Help/ThermalLabel7.0/api/Neodynamic.SDK.Printing.TextItem.html
so you must contact their support for this.
Upvotes: 0