Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在C#Net应用程序中从SDK版本3更新到新动力热标签SDK版本7?_C#_Wpf_Thermal Printer_Neodynamic - Fatal编程技术网

如何在C#Net应用程序中从SDK版本3更新到新动力热标签SDK版本7?

如何在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

在我的一个C#.Net应用程序中,我使用Thermal Label SDK版本3创建了标签。现在由于一些原因,我想将Thermal Label SDK版本更新到最新版本。当更新Thermal label SDK时,我可以看到与之前的版本3相比有很多变化。以下是我的疑问

  • 无法为热标签设置边距
  • 在Thermal label SDK 3中,我可以将边距设置为ThermalLabel,如下所示。但在SDK版本7中,这些属性并不存在

    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);
    
  • 无法设置文本项文本行、Font.CharHeight、IsBuiltInfo属性
  • 在Thermal label SDK 3中,我可以将上述属性设置为TextItem,如下所示。但在SDK版本7中,这些属性并不存在

    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);
    
  • 无法将旋转属性设置为条码项目
  • 在Thermal label SDK 3中,我可以将Rotate属性设置为BarCodeItem,如下所示。但在SDK版本7中,这些属性并不存在

    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不向后兼容

  • 不再支持边距,必须指定X和Y 每件物品的道具

  • 对于TextItem字体设置,必须使用字体属性。阅读更多 依靠帮助

  • 设置条形码项目obj的旋转角度道具


  • 谢谢你的回复。