Hi,
this code will capture the result of the Ok & cancel button on the printerdialog.If the user presses Ok the result is true, in all other cases result will be false.
procedure TForm1.Button1Click(Sender: TObject);
var
Result: boolean;
begin
Result := PrintDialog1.Execute;
if Result then
showmessage('Print something')
else
showmessage('Canceled')
end;
Steph [Bigglasses]