TiScope.PrinterName
TiScope
Specifies the name of the printer to print to when using the PrintDisplay method.
property PrinterName : String;
Description
Use PrinterName to specify the name of the printer to print to when using the PrintDisplay method. The name of the printer corresponds to the name of the printer
specified in the Windows Printer Control Panel. If this property is set to an empty
string, then the default system printer will be used instead.
This property should be set to an empty string in most circumstances as it is
only useful if you know the name of the printer (either by displaying your own
printer selection dialogs, or loaded user settings from an INI file or the
Registry).
Note: if you have set PrintShowDialog to TRUE and have set PrinterName to a non-empty string, then the printer
selected by the user will be ignored! The PrinterName property will always
override the user printer selection, if you are using our printer dialog If you plan
on showing our built-in printer selection dialog to your end user, then you
should set the PrinterName property to an empty string for everything to work
correctly.
Example
Delphi
iComponent.PrinterName := 'LASERJET4000';
C++ Builder
iComponent->PrinterName = "LASERJET4000";
Contents | Index | Previous | Next