delphi5中怎样垂直打印? qrlabel.Caption :='中'+chr(13)+'国'+chr(13)+'申'+chr(13)+'奥'+chr(13)+'成'+chr(13)+'功'; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Printer.Orientation:= poPortrait; // 垂直Printer.Orientation:= poLandscape; //水平 <From> http://www.csdn.net/expert/topic/75/75814.shtm有可以旋转的字体你试试看吧procedure TForm1.Button1Click(Sender: TObject);var lf: TLogFont; tf: TFont;begin with Label1 do begin Width := 137; Height := 97; AutoSize := False; end; Label1.Font.Name := '黑体'; //要用TrueType字体 Label1.Font.Size := 24; tf := TFont.Create; tf.Assign(Label1.Font); GetObject(tf.Handle, SizeOf(lf), @lf); lf.lfEscapement := 450; //旋转的角度(单位0.1度) lf.lfOrientation := 450; tf.Handle := CreateFontIndirect(lf); Label1.Font.Assign(tf); Label1.Font.Handle := CreateFontIndirect(lf); Label1.Caption := #13#10#13#10'Hello'; tf.Free;end; rxlabel1.caption:='中'+#13+'国’+#13+‘申’+#13+‘奥’+#13+‘成’+#13+‘功’;即可。 fastreport的问题,急 关于cxGrid1TableView1 收集所有图片翻转方法。。。。。。。 三层数据添加的问题 小问题急!!! 了解Jabber协议的请进!!!! 编程之余,推荐大家一个完全免费电影网,休息一下。 高手,请告诉我drivecombox控件在何处,我找不到,用的是7.0版。另用代码打开access数据库如何写? 有什么函数可以实现real和string之间的转换?IntToStr和StrToInt行吗? 为什么不能给分了?我可不想大家认为我耍赖不给分。 tedit的一个小问题 在delphi中如何调用dll
Printer.Orientation:= poLandscape; //水平
你试试看吧procedure TForm1.Button1Click(Sender: TObject);
var
lf: TLogFont;
tf: TFont;
begin
with Label1 do begin
Width := 137;
Height := 97;
AutoSize := False;
end; Label1.Font.Name := '黑体'; //要用TrueType字体
Label1.Font.Size := 24;
tf := TFont.Create;
tf.Assign(Label1.Font);
GetObject(tf.Handle, SizeOf(lf), @lf);
lf.lfEscapement := 450; //旋转的角度(单位0.1度)
lf.lfOrientation := 450;
tf.Handle := CreateFontIndirect(lf);
Label1.Font.Assign(tf);
Label1.Font.Handle := CreateFontIndirect(lf);
Label1.Caption := #13#10#13#10'Hello';
tf.Free;
end;
即可。