L
LargeWang
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses
Printers;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1.Caption := 'AMVW269';
Button1.Font.Name := 'Fixedsys';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
with Printerdo
begin
begin
Doc;
Canvas.Font.Name := 'Fixedsys';
Canvas.TextOut(10, 10, 'AMVW269');
EndDoc;
end;
end;
end.
把打印结果同Button1.Caption比较看看,字体不一样啊。
我相信这个问题一定有解(确实有人解决了这个问题)
Thanks for your help.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses
Printers;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1.Caption := 'AMVW269';
Button1.Font.Name := 'Fixedsys';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
with Printerdo
begin
begin
Doc;
Canvas.Font.Name := 'Fixedsys';
Canvas.TextOut(10, 10, 'AMVW269');
EndDoc;
end;
end;
end.
把打印结果同Button1.Caption比较看看,字体不一样啊。
我相信这个问题一定有解(确实有人解决了这个问题)
Thanks for your help.