Hi there
EH> A question for Delphi 1...
EH> It says in the help that subj. has an execute method, and they give an
EH> example much like:
EH> if PrinterSetupDialog.Execute Then ...
EH> BUT when I try to do that, I get an error which indicates that
EH> TPrinterSetupDialog.Execute isn't a function (method), but a
EH> procedure, and thus the above mentioned example cannot be executed.
EH> Funny enough, the quite similar TPrintDialog *has* got a method called
EH> execute, that works as described (i.e. if the user presses the OK
EH> button, it returns true, otherwise false)
Check on your form if you have the PrinterSetupDialog "Icon"
If you have then check the Name it might be
PrinterSetupDialog1 (* Notice the 1 *)
Then it should work fine.
EH> HOW can I read out which of the buttons the user pressed in
EH> TPrinterSetupDialog?? It has no modalresult property, and I would like
EH> to avoid using TPrintDialog (because I need no copies-counter).
EH> Is there a component or update for delphi that fixes this problem?
With the buttons I am not so sure on this stage. But will have a look
Sydney
--- Blue Wave/DOS v2.30 [NR]
---------------
* Origin: Goldfields Echolink - Johannesburg, RSA (5:7101/3)
|