delphi.gif (306 バイト) PrintDialogの使い方


PrintDialogは図のような「印刷」ダイアログを表示するために使用します。

 

PrintDialog.jpg (20987 バイト)

 

delphi1.gif (322 バイト) 使用例

procedure TForm1.Print2Click(Sender: TObject);
begin
  // ページ指定オプションを設定
  PrintDialog1.Options := [poPageNums];
  if PrintDialog1.Execute then
  begin
     ..... ;  // ここでPrintDialogのプロパティに従って印刷を行う。
  end;
end;