W
whitecandy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
begin
if Printer.Printers.count > 0 then
begin
Printer.begin
Doc;
Printer.canvas.Font.Size:=10;
Printer.canvas.font.Color :=clred;
Printer.Canvas.font.Style :=[fsBold];
Printer.canvas.font.Name :='宋体';
Printer.Orientation := poPortrait;
Printer.canvas.TextOut (10,10,'hello');
printer.EndDoc;
end;
end;
是不是还要设置纸张来源??
另外写预览代码时如何实现在image.canvas上垂直显示一字符串,请指教
begin
if Printer.Printers.count > 0 then
begin
Printer.begin
Doc;
Printer.canvas.Font.Size:=10;
Printer.canvas.font.Color :=clred;
Printer.Canvas.font.Style :=[fsBold];
Printer.canvas.font.Name :='宋体';
Printer.Orientation := poPortrait;
Printer.canvas.TextOut (10,10,'hello');
printer.EndDoc;
end;
end;
是不是还要设置纸张来源??
另外写预览代码时如何实现在image.canvas上垂直显示一字符串,请指教