如何在C#Net应用程序中从SDK版本3更新到新动力热标签SDK版本7?
在我的一个C#.Net应用程序中,我使用Thermal Label SDK版本3创建了标签。现在由于一些原因,我想将Thermal Label SDK版本更新到最新版本。当更新Thermal label SDK时,我可以看到与之前的版本3相比有很多变化。以下是我的疑问如何在C#Net应用程序中从SDK版本3更新到新动力热标签SDK版本7?,c#,wpf,thermal-printer,neodynamic,C#,Wpf,Thermal Printer,Neodynamic,在我的一个C#.Net应用程序中,我使用Thermal Label SDK版本3创建了标签。现在由于一些原因,我想将Thermal Label SDK版本更新到最新版本。当更新Thermal label SDK时,我可以看到与之前的版本3相比有很多变化。以下是我的疑问 无法为热标签设置边距 在Thermal label SDK 3中,我可以将边距设置为ThermalLabel,如下所示。但在SDK版本7中,这些属性并不存在 ThermalLabel tLabel = new ThermalLab
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;
TextItem txtField = new TextItem();
txtField.Font.IsBuiltInFont = !this.useSoftFont;
txtField.Font.CharHeight = fieldDef.FieldFont.Size;
txtField.TextLines = 2;
BarcodeItem dataMatrixItem = new BarcodeItem();
dataMatrixItem.Rotate = (Neodynamic.SDK.Printing.Rotate)Enum.Parse(typeof(Neodynamic.SDK.Printing.Rotate), fieldDef.Rotate);
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;
TextItem txtField = new TextItem();
txtField.Font.IsBuiltInFont = !this.useSoftFont;
txtField.Font.CharHeight = fieldDef.FieldFont.Size;
txtField.TextLines = 2;
BarcodeItem dataMatrixItem = new BarcodeItem();
dataMatrixItem.Rotate = (Neodynamic.SDK.Printing.Rotate)Enum.Parse(typeof(Neodynamic.SDK.Printing.Rotate), fieldDef.Rotate);
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;
TextItem txtField = new TextItem();
txtField.Font.IsBuiltInFont = !this.useSoftFont;
txtField.Font.CharHeight = fieldDef.FieldFont.Size;
txtField.TextLines = 2;
BarcodeItem dataMatrixItem = new BarcodeItem();
dataMatrixItem.Rotate = (Neodynamic.SDK.Printing.Rotate)Enum.Parse(typeof(Neodynamic.SDK.Printing.Rotate), fieldDef.Rotate);
我查看了文档,但没有看到任何与此相关的内容。如果有人知道怎么做,请告诉我。根据文档,他们没有这样的属性供您使用
因此,您必须联系他们的支持人员。我已经联系了新动力支持团队,以下是他们的回复。我把它贴在这里是因为它可能会帮助别人 自v4以来,SDK不向后兼容
谢谢你的回复。