打印标签 dymo 不起作用
Print a label dymo doesn't work
我在 Delphi 中使用 TDymoDrucker
class 来打印标签。我使用 Dymo Label v.8 创建了标准标签字段。
在 Labelform 中,我在单击按钮时将变量发送到 TDymo Drucker class
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 class 中是否安装了所有字段和驱动程序,最后使用 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 class 中是否安装了所有字段和驱动程序,最后使用 DymoAddIn.Print(1, true)
,我无法打印标签。它不显示任何错误消息或失败。
有人能告诉我这是为什么吗?提前感谢您的帮助。
现在有效,我现在使用 DYMO SDK v.8 中的现有示例(在我使用测试之前)创建了一个新标签,并使用地址字段(动态)而不是文本字段(静态)添加了字段这是静态的。它现在按预期打印。
我在 Delphi 中使用 TDymoDrucker
class 来打印标签。我使用 Dymo Label v.8 创建了标准标签字段。
在 Labelform 中,我在单击按钮时将变量发送到 TDymo Drucker class
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 class 中是否安装了所有字段和驱动程序,最后使用 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 class 中是否安装了所有字段和驱动程序,最后使用 DymoAddIn.Print(1, true)
,我无法打印标签。它不显示任何错误消息或失败。
有人能告诉我这是为什么吗?提前感谢您的帮助。
现在有效,我现在使用 DYMO SDK v.8 中的现有示例(在我使用测试之前)创建了一个新标签,并使用地址字段(动态)而不是文本字段(静态)添加了字段这是静态的。它现在按预期打印。