【问题标题】:Print a label dymo doesn't work打印标签 dymo 不起作用
【发布时间】:2015-11-04 23:44:11
【问题描述】:

我在 Delphi 中使用TDymoDrucker 类来打印标签。我使用 Dymo Label v.8 创建了标准标签字段。

在 Labelform 中,我通过单击按钮将变量发送到 TDymo Drucker 类

procedure TFormButton.Button1Click(Sender: TObject);
var
  Print : TDymoData; 
begin
  PrintData.selected     := 'Button1';
  PrintData.Nummber      := 1234;
  PrintData.Name :='Example1';
  DymoData.Print(PrintData); //Passing parameters to Dymodrucker classwhere it checks for printer status and label fields
end;

我处理所有操作以检查是否安装在 DymoDrucker 类中的所有字段和驱动程序,最后使用 DymoAddIn.Print(1, true) 我能够打印标签。

但是在单击相同表单中的另一个按钮时

procedure TFormButton.Button2Click(Sender: TObject);
var
  Print : TDymoData; 
begin
  PrintData.selected     := 'Button2';
  PrintData.Model      := 4567;
  PrintData.ModelName :='Example2';
  DymoData.Print(PrintData);
end;

我处理所有操作以检查是否在 DymoDrucker 类中安装了所有字段和驱动程序,最后使用 DymoAddIn.Print(1, true),我无法打印标签。它不显示任何错误消息或失败。
有人可以告诉我为什么会这样吗?提前感谢您的帮助。

【问题讨论】:

    标签: delphi delphi-7 dymo


    【解决方案1】:

    它现在可以工作了,我现在使用 DYMO SDK v.8 中的现有样本(在我使用测试之前)创建了一个新标签,并使用地址字段(动态)而不是文本字段(静态)添加了字段静止的。它现在按预期打印。

    【讨论】:

      猜你喜欢
      • 2018-09-29
      • 2015-10-20
      • 1970-01-01
      • 1970-01-01
      • 2020-03-20
      • 2016-03-25
      • 2020-12-21
      • 2018-10-03
      • 1970-01-01
      相关资源
      最近更新 更多