【问题标题】:Use of fbarcode component with delphi-2010delphi-2010 使用 fbarcode 组件
【发布时间】:2011-11-10 04:50:40
【问题描述】:

我使用 fbarcode 1.27(带有源代码的免费组件)在 Delphi6 中制作和打印条形码(使用快速报告)。但现在我尝试使用 Delphi 2010,但它不起作用。

有人有解决方案吗?

TIA

【问题讨论】:

  • AnsiChar替换所有char类型,用AnsiString替换所有string类型。
  • “它不起作用”。这个问题不起作用。想象一下,如果你把车开到车库,然后说:“它不工作,有什么问题”。看在上帝的份上,请学会解释问题所在。
  • 或者发个链接让我们可以下载组件
  • @opc0de:可以下载 here.. 顺便说一句,我同意 Andreas 的观点。该组件是在 D2009 (Unicode) 之前编写的。

标签: delphi components delphi-2010 barcode


【解决方案1】:

我这样做了:用 string 替换 char 的数组(在 2 个地方)

function TAsBarcode.Code_Codabar:string;
type TCodabar =
  record
    c : char;
    data : string; //array[0..6] of char; 
  end;

function TAsBarcode.Code_39:string;

type TCode39 =
  record
    c : char;
    data : string; //array[0..9] of char;
    chk: shortint;
  end;

【讨论】:

  • 感谢您的解决方案。一定比一些cmets有用!!???
猜你喜欢
  • 2010-12-18
  • 2011-01-12
  • 2011-02-18
  • 2010-12-27
  • 2013-11-01
  • 2023-03-05
  • 1970-01-01
  • 1970-01-01
  • 2011-05-03
相关资源
最近更新 更多