Jump to content
wildsky

How does FMX check the printer status

Recommended Posts

Not really sure I understand the question.

 

The only GetPrinter() I see in the FMX.Printer unit is the getter method for the TPrinter.Printers[] property.

 

Are you looking for an FMX equivalent of the VCL TPrinter.GetPrinter() method, which outputs device info and a Handle to the currently active Printer?  On Windows, the FMX.Printer.Win.TPrinterWin class has such a method.

 

What status are you looking for exactly?  Please clarify.

Share this post


Link to post

Yes looking for an FMX equivalent of the VCL TPrinter.GetPrinter() method,
I  before tried FMX.Printer, FMX.Printer.Win  , but they couldn’t compile.
before examples are also VCL, how to try FMX is not
Sorry for my bad English, I can’t express the problem clearly, but it is probably the case

g00341.png

g00342.png

Share this post


Link to post
On 12/26/2021 at 7:36 PM, wildsky said:

Yes looking for an FMX equivalent of the VCL TPrinter.GetPrinter() method,
I  before tried FMX.Printer, FMX.Printer.Win  , but they couldn’t compile.

Please elaborate.  What code did you try, and what error(s) did you get?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×