DelphiʵÏÖ¼ì²â²¢Ã¶¾Ùϵͳ°²×°µÄ´òÓ¡»úµÄ·½·¨。本站提示廣大學習愛好者:(DelphiʵÏÖ¼ì²â²¢Ã¶¾Ùϵͳ°²×°µÄ´òÓ¡»úµÄ·½·¨)文章只能為提供參考,不一定能成為您想要的結果。以下是DelphiʵÏÖ¼ì²â²¢Ã¶¾Ùϵͳ°²×°µÄ´òÓ¡»úµÄ·½·¨正文
±¾ÎÄÒÔʵÀý˵Ã÷Delphi´òÓ¡³ÌÐòµÄʵÏÖ·½·¨¡£¸ÃʵÀý¿ÉÒÔ¼ì²âϵͳÖа²×°µÄËùÓдòÓ¡»ú£¬Ã¶¾Ù³öÕâЩ´òÓ¡»ú£¬Ö÷Òª¹¦ÄÜ´úÂë·Ç³£¼òµ¥£¬±ãÓÚ´ó¼ÒÔĶÁÓëÀí½â¡£
Ö÷Òª¹¦ÄÜ´úÂëÈçÏ£º
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,Printers, XPMan;
type
TForm1 = class(TForm)
Button1: TButton;
GroupBox1: TGroupBox;
Memo1: TMemo;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Memo1.Clear;
memo1.Lines.Assign(Printer.Printers);
if trim(memo1.Text) = '' then
begin
showmessage('ûÓа²×°´òÓ¡»ú£¡');
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Close;
end;
end.