wildsky 0 Posted December 24, 2021 How does FMX check the printer status, the GetPrinter of FMX.Printer cannot be used? Share this post Link to post
Remy Lebeau 1394 Posted December 24, 2021 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
wildsky 0 Posted December 27, 2021 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 Share this post Link to post
Remy Lebeau 1394 Posted December 29, 2021 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