Delphi

Preventing multiple application instances

Author: Embarcadero USA Question and Answer Database FAQ1355D.txt Preventing multiple application instances Category :Windows API Platform :All Product :All 32 bit Question: How can I guarantee that only one instance of my program executes? Is it possible to restore the previous instance and shut down if I start more than one instance? Answer: Under Win16, you can check the value…
Read more
Delphi

Changing the papersize of a print job.

Author: Embarcadero USA Question and Answer Database FAQ603D.txt - Changing the papersize of a print job. Category :Printing Platform :All-32Bit Product : Question: How can I change the papersize of my print job? Answer: One way to change printer settings at the start of a print job is to change the printer's devicemode structure. See: TDEVMODE in the Delphi 1.02 help file or…
Read more