哈哈,老是送分问题(定位打印) 我要在右10厘米,高10厘米处打印“你他妈的”最好是自己编写打印程序不要用quickrep 控件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 提供一些资料仅供参考!unit main;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, RPrev, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; Button2: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);var ry : TRyPrinter; r : TRect;beginry := TRyPrinter.Create;tryry.NewJob; r.Top := Ry.YInch(1); r.Left := Ry.XInch(1); r.Right := Ry.XInch(5); r.Bottom := Ry.YInch(2); //doesn't really matter since //the box expands on the bottom to fit textry.MemoOut(r, Memo1.Lines.GetText, False, False);if Sender = Button2 then Ry.PrintIt else Ry.Preview;finallyry.Free;end;end;end.有问题请发信息到我的E-mail:[email protected] 《Delphi5开发人员指南》第5章有详细说明 惊天大发现,四个棱的钥匙尖可以当螺丝刀用,赞自己一个 急请教高手Pascal Script3.0 控件如何使用? 在或曾经上海工作的朋友进来一下,有几个生活方面的问题请教 如何为uses中的Pas文件指定路径? 关于登陆框的问题 虽然我没做过什么正式的项目,但学编程也一年多了,总感觉差点什么东西,请问要做window编程,应该要掌握些什么???? 怎样通过DELPHI屏蔽掉“将你的计算机转入睡眠状态” 一个判断按扭是否可用的问题,急,请各位高手帮忙。 为何我自己写的asp组件要验证 Delphi中如何实现不规则区域的鼠标点击响应? 请问DELPHI打包程序,谢谢 请frend进来拿分!
unit main;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
RPrev, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Button2: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
var
ry : TRyPrinter;
r : TRect;
begin
ry := TRyPrinter.Create;
try
ry.NewJob;
r.Top := Ry.YInch(1);
r.Left := Ry.XInch(1);
r.Right := Ry.XInch(5);
r.Bottom := Ry.YInch(2); //doesn't really matter since
//the box expands on the bottom to fit text
ry.MemoOut(r, Memo1.Lines.GetText, False, False);if Sender = Button2 then Ry.PrintIt else Ry.Preview;
finally
ry.Free;
end;
end;end.
有问题请发信息到我的E-mail:[email protected]