How to Get printer capabilities?



How to Get printer capabilities?..

Answer / Durgesh Kumar

To get printer capabilities, you can use the TPrinter component's PrinterCapabilities property. Here's an example:

```
program PrinterCapabilitiesDemo;

{$APPTYPE DLL}

uses SysUtils, Printing;

var
P: TPrinter;
begin
P := TPrinter.Create(nil);
try
if Assigned(P) then
WriteLn(P.PrinterCapabilities)
finally
P.Free;
end;
end.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to open or create a project using the TReport component?

1 Answers  


Why is there no automation in releasing the memory automatically during the termination of the program?

1 Answers  


How to Propagate constraints from middle-tier to client?

1 Answers  


How to Copy contents of a control to the clipboard?

1 Answers  


What is the tag property useful for?

1 Answers  


What versions of Delphi are there?

1 Answers  


Where are the Delphi 4 InterBase Certificate Keys and IDs located?

1 Answers  


What does memory leak show in delphi?

1 Answers  


'Translate error, value out of bounds' error what does these errors mean?

1 Answers  


How to get UpdateMode to work for TQuery on a SQL Server 7.0 table?

1 Answers  


What are the Benefits of the ConstraintBroker?

1 Answers  


How to Connect to a remote CORBA server?

1 Answers  


Categories