我的程序为:
procedure TForm1.Button1Click(Sender: TObject);
begin
Printer.begin
Doc;
//29行
Printer.Canvas.Font.Name := '宋体';
//30行
Printer.Canvas.Font.Size := 5;
//31行
Printer.Canvas.TextOut(10,20,'abc');//32行
Printer.EndDoc;
//33行
end;
编译时提示:
[Error] Unit1.pas(29): Undeclared identifier: 'Printer'
[Error] Unit1.pas(30): Missing operator or semicolon
[Error] Unit1.pas(31): Missing operator or semicolon
[Error] Unit1.pas(32): Missing operator or semicolon
[Error] Unit1.pas(33): Missing operator or semicolon
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
请问我的问题出在哪里?