请教:把VB代码改DELPHI代码?(100分)

  • 主题发起人 主题发起人 YongSoft
  • 开始时间 开始时间
Y

YongSoft

Unregistered / Unconfirmed
GUEST, unregistred user!
Dim objReportTitle1 As New FlexCell.ReportTitle
With objReportTitle1
.Text = "分部分项工程量清单计价表"
.Align = cellCenter
.PrintOnAllPages = True
.Font.Name = "楷体_GB2312"
.Font.Size = 18
.Font.Bold =
 
var fFlexCell:TFlexCell;
fFlexCell:=TFlexCell.Create;
With FlexCell.ReportTitle do begin
Text := '分部分项工程量清单计价表';
Align := cellCenter;
PrintOnAllPages := True;
Font.Name := '楷体_GB2312';
Font.Size := 18l;
Font.Bold := true

end;
 
==>dey-999 不对
 
Printer.Refresh;
try
Printer.BeginDoc;
Printer.Canvas.Font.Name :='宋体';
Printer.Canvas.Font.Size :=18;
Printer.Canvas.Font.Size :=14;
Printer.Canvas.TextOut(1900,300,'报表');
Printer.Canvas.Font.Size :=12;
Printer.Canvas.TextOut(300,500,'名称:');
 
嘿嘿,因为这东西我没有用过,楼上的似乎说得不错
 

Similar threads

D
回复
0
查看
1K
DelphiTeacher的专栏
D
I
回复
0
查看
759
import
I
I
回复
0
查看
800
import
I
D
回复
0
查看
2K
DelphiTeacher的专栏
D
后退
顶部