急需解决,是不是条码大小设置的不正确。
需要打印39码,宽125高30
谢谢,辛苦了。
unit Demo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function A_Set_Darkness ( darkness:integer):integer;stdcall;external 'WINPPLA.DLL';
function A_CreatePrn ( selection:integer;FileName:pchar):integer;stdcall;external 'WINPPLA.DLL';
function A_Print_Out ( width,height,copies,amount:integer):integer;stdcall;external 'WINPPLA.DLL';
function A_Prn_Barcode ( x,y,ori:integer;typee:char;narrow,width,height:integer;mode:char;numeric:integer;data:pchar):integer;stdcall;external 'WINPPLA.DLL';
Procedure A_ClosePrn ();stdcall;external 'WINPPLA.DLL';
procedure TForm1.Button1Click(Sender: TObject);
begin
A_CreatePrn(1,'ppla.txt');
A_Set_Darkness(10);
A_Prn_Barcode(10, 35, 1, 'A', 1, 4, 30, 'd', 1, pchar('DOS.991111895213390'));
A_Print_Out(1, 1, 2, 1);
A_ClosePrn;
end;
end. |
|